Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009088/0.0009089, allocations: 177.2 kB / 17.36 MB, free: 4.449 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.6 MB / 223.7 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007443/0.0007443, allocations: 94.34 kB / 272.1 MB, free: 8.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002295/0.0002295, allocations: 4 kB / 329 MB, free: 15.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2469, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004479/0.2514, allocations: 4.962 MB / 381.6 MB, free: 41.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.2541, allocations: 1.719 MB / 383.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004134/0.2546, allocations: 17.41 kB / 383.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.2548, allocations: 113.9 kB / 383.4 MB, free: 40.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004464/0.2553, allocations: 237.4 kB / 383.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005702/0.2559, allocations: 303.8 kB / 383.9 MB, free: 39.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.257, allocations: 1.174 MB / 385.1 MB, free: 38.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005031/0.2575, allocations: 363.1 kB / 385.5 MB, free: 38.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004555/0.2579, allocations: 372.7 kB / 385.8 MB, free: 38.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004585/0.2584, allocations: 466.8 kB / 386.3 MB, free: 38.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.2585, allocations: 55.12 kB / 386.3 MB, free: 38.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.2588, allocations: 83.05 kB / 386.4 MB, free: 38.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.2589, allocations: 175.1 kB / 386.6 MB, free: 37.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003977/0.2593, allocations: 0.4938 MB / 387.1 MB, free: 37.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009183/0.2603, allocations: 1.303 MB / 388.4 MB, free: 36.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2603, allocations: 0 / 388.4 MB, free: 36.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2603, allocations: 0 / 388.4 MB, free: 36.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.2603, allocations: 4 kB / 388.4 MB, free: 36.59 MB / 298.7 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.001909/0.2622, allocations: 1.138 MB / 389.5 MB, free: 35.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.2623, allocations: 12.03 kB / 389.5 MB, free: 35.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.2624, allocations: 103.7 kB / 389.6 MB, free: 35.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.263, allocations: 0.5128 MB / 390.2 MB, free: 34.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.263, allocations: 58.38 kB / 390.2 MB, free: 34.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.2631, allocations: 84.28 kB / 390.3 MB, free: 34.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.2645, allocations: 0.8886 MB / 391.2 MB, free: 33.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.2645, allocations: 4 kB / 391.2 MB, free: 33.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.185e-05/0.2646, allocations: 36 kB / 391.2 MB, free: 33.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.2646, allocations: 20 kB / 391.2 MB, free: 33.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.2659, allocations: 0.8043 MB / 392 MB, free: 32.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003805/0.2697, allocations: 3.099 MB / 395.1 MB, free: 29.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008933/0.2706, allocations: 0.6608 MB / 395.8 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005574/0.2712, allocations: 418.4 kB / 396.2 MB, free: 28.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.044e-05/0.2713, allocations: 16.53 kB / 396.2 MB, free: 28.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.2713, allocations: 39.12 kB / 396.3 MB, free: 28.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.635e-06/0.2713, allocations: 3.938 kB / 396.3 MB, free: 28.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.00358/0.2749, allocations: 2.248 MB / 398.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.407e-05/0.2749, allocations: 56.06 kB / 398.6 MB, free: 26.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004316/0.2754, allocations: 0.5067 MB / 399.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.2754, allocations: 37.7 kB / 399.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.2756, allocations: 395.5 kB / 399.5 MB, free: 25.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.2757, allocations: 248.4 kB / 399.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.589e-05/0.2757, allocations: 20 kB / 399.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.774e-05/0.2758, allocations: 374.8 kB / 400.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005013/0.2763, allocations: 317.9 kB / 400.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005474/0.2769, allocations: 441.1 kB / 400.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.278, allocations: 0.7624 MB / 401.6 MB, free: 22.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.278, allocations: 4 kB / 401.6 MB, free: 22.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0017/0.2797, allocations: 1.06 MB / 402.7 MB, free: 21.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.2797, allocations: 8 kB / 402.7 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2798, allocations: 7.875 kB / 402.7 MB, free: 21.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005159/0.2803, allocations: 180.7 kB / 402.9 MB, free: 21.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007491/0.281, allocations: 191.8 kB / 403.1 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.2839, allocations: 2.604 MB / 405.7 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000567/0.2844, allocations: 44.03 kB / 405.7 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.458e-05/0.2845, allocations: 31.94 kB / 405.8 MB, free: 18.67 MB / 298.7 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.0003287/0.2848, allocations: 217.7 kB / 406 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.13e-05/0.2849, allocations: 71.16 kB / 406 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.2851, allocations: 90.16 kB / 406.1 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2851, allocations: 8 kB / 406.1 MB, free: 18.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.2851, allocations: 4 kB / 406.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2851, allocations: 7.984 kB / 406.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007523/0.2859, allocations: 0.8377 MB / 407 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2859, allocations: 0 / 407 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006598/0.2866, allocations: 148 kB / 407.1 MB, free: 17.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004533/0.287, allocations: 184.6 kB / 407.3 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/0.2871, allocations: 27.98 kB / 407.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.2898, allocations: 2.6 MB / 409.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2898, allocations: 7.984 kB / 409.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/0.2918, allocations: 1.408 MB / 411.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.292, allocations: 148.2 kB / 411.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.679e-05/0.2921, allocations: 16 kB / 411.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005217/0.2926, allocations: 63.95 kB / 411.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.2927, allocations: 48.58 kB / 411.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.701e-05/0.2928, allocations: 23.98 kB / 411.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002994/0.2931, allocations: 350.9 kB / 412 MB, free: 12.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2931, allocations: 0 / 412 MB, free: 12.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006562/0.2938, allocations: 220 kB / 412.2 MB, free: 11.98 MB / 298.7 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.0001783/0.2939, allocations: 143.2 kB / 412.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.2958, allocations: 1.025 MB / 413.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2958, allocations: 0 / 413.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.2969, allocations: 0.651 MB / 414 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006537/0.2976, allocations: 126.3 kB / 414.1 MB, free: 10 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/0.3001, allocations: 2.405 MB / 416.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.3004, allocations: 0.9538 MB / 417.5 MB, free: 6.586 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003315/0.3007, allocations: 77.06 kB / 417.6 MB, free: 6.508 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.3009, allocations: 51.42 kB / 417.6 MB, free: 6.461 MB / 298.7 MB Notification: Performance of SimCode: time 3.8e-07/0.3009, allocations: 4 kB / 417.6 MB, free: 6.457 MB / 298.7 MB Notification: Performance of Templates: time 0.01418/0.3151, allocations: 9.75 MB / 427.4 MB, free: 12.74 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches