Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001179, allocations: 109.4 kB / 18.4 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 193.2 kB / 19.33 MB, free: 3.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 55.92 kB / 329.2 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09418/0.09542, allocations: 46.61 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2167/0.3121, allocations: 5.7 MB / 381.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003341/0.3155, allocations: 1.442 MB / 383 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000728/0.3163, allocations: 19.06 kB / 383 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004486/0.3168, allocations: 156.1 kB / 383.1 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007611/0.3176, allocations: 272.9 kB / 383.4 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.3187, allocations: 366.8 kB / 383.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001842/0.3205, allocations: 1.238 MB / 385 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006871/0.3213, allocations: 418.5 kB / 385.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009138/0.3222, allocations: 460.3 kB / 385.9 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008002/0.323, allocations: 0.5286 MB / 386.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002142/0.3232, allocations: 124.1 kB / 386.5 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003979/0.3236, allocations: 155.9 kB / 386.7 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.3238, allocations: 250.8 kB / 386.9 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005267/0.3244, allocations: 0.5465 MB / 387.5 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001911/0.3263, allocations: 1.402 MB / 388.9 MB, free: 7.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.083e-05/0.3263, allocations: 0 / 388.9 MB, free: 7.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.3263, allocations: 0 / 388.9 MB, free: 7.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.98e-05/0.3264, allocations: 1.062 kB / 388.9 MB, free: 7.238 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.003623/0.33, allocations: 1.292 MB / 390.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.482e-05/0.3301, allocations: 8.719 kB / 390.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002438/0.3304, allocations: 105.1 kB / 390.3 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009405/0.3313, allocations: 0.5157 MB / 390.8 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-05/0.3314, allocations: 59.19 kB / 390.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.3315, allocations: 85.62 kB / 390.9 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.3334, allocations: 0.8853 MB / 391.8 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.3334, allocations: 1.031 kB / 391.8 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.409e-05/0.3335, allocations: 35.69 kB / 391.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.3336, allocations: 18.66 kB / 391.9 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.3353, allocations: 0.7805 MB / 392.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00585/0.3412, allocations: 3.024 MB / 395.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.3425, allocations: 0.6528 MB / 396.3 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007642/0.3433, allocations: 409.4 kB / 396.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.845e-05/0.3434, allocations: 14.5 kB / 396.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.3434, allocations: 42 kB / 396.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 3.547e-06/0.3434, allocations: 1.125 kB / 396.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.005072/0.3485, allocations: 2.192 MB / 399 MB, free: 1.824 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.3486, allocations: 60.31 kB / 399 MB, free: 1.762 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006962/0.3493, allocations: 0.5042 MB / 399.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.005e-05/0.3494, allocations: 38.27 kB / 399.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.3496, allocations: 389.9 kB / 399.9 MB, free: 1.176 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.3498, allocations: 252.9 kB / 400.2 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/0.35, allocations: 137.8 kB / 400.3 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.3501, allocations: 378.7 kB / 400.7 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006123/0.3507, allocations: 306.6 kB / 401 MB, free: 456 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006928/0.3514, allocations: 432.8 kB / 401.4 MB, free: 204 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.353, allocations: 0.7551 MB / 402.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-06/0.3531, allocations: 9.125 kB / 402.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002447/0.3555, allocations: 1.034 MB / 403.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.3556, allocations: 10.84 kB / 403.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.3556, allocations: 2.938 kB / 403.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006392/0.3562, allocations: 184.3 kB / 403.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000878/0.3571, allocations: 184.8 kB / 403.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004163/0.3613, allocations: 2.863 MB / 406.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008995/0.3622, allocations: 37.28 kB / 406.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.59e-05/0.3623, allocations: 25.28 kB / 406.5 MB, free: 12.89 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005442/0.3629, allocations: 225.7 kB / 406.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.3631, allocations: 69.81 kB / 406.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001987/0.3633, allocations: 86.08 kB / 406.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.3633, allocations: 11.38 kB / 406.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-05/0.3633, allocations: 6.453 kB / 406.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.3633, allocations: 5.109 kB / 406.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.3647, allocations: 0.8326 MB / 407.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.3647, allocations: 1.062 kB / 407.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007395/0.3654, allocations: 148.2 kB / 407.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005867/0.366, allocations: 184.4 kB / 408.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.427e-05/0.3661, allocations: 27.61 kB / 408.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003952/0.3701, allocations: 2.847 MB / 410.9 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3701, allocations: 3.938 kB / 411 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003034/0.3731, allocations: 1.39 MB / 412.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.3735, allocations: 137.8 kB / 412.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3736, allocations: 16.78 kB / 412.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005995/0.3742, allocations: 52.52 kB / 412.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/0.3744, allocations: 53.28 kB / 412.6 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.859e-05/0.3745, allocations: 25.34 kB / 412.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004766/0.375, allocations: 355.7 kB / 413 MB, free: 8.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.375, allocations: 0 / 413 MB, free: 8.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009383/0.3759, allocations: 223.4 kB / 413.2 MB, free: 8.152 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003009/0.3762, allocations: 136.1 kB / 413.3 MB, free: 8.039 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002502/0.3787, allocations: 1.006 MB / 414.3 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.3788, allocations: 0 / 414.3 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.3801, allocations: 0.6342 MB / 415 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008837/0.381, allocations: 138.9 kB / 415.1 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003639/0.3847, allocations: 1.914 MB / 417 MB, free: 5.562 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005685/0.3853, allocations: 0.9655 MB / 418 MB, free: 4.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.3856, allocations: 59.41 kB / 418 MB, free: 4.512 MB / 334.1 MB Notification: Performance of SimCode: time 1.863e-06/0.3856, allocations: 4 kB / 418 MB, free: 4.508 MB / 334.1 MB Notification: Performance of Templates: time 0.01998/0.4056, allocations: 13.75 MB / 431.8 MB, free: 6.742 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches