Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002254/0.002254, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.081/2.081, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 105.2 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.245e-05/2.245e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3557, allocations: 47.56 MB / 362.3 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4848, allocations: 79.42 MB / 441.7 MB, free: 6.918 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.4851, allocations: 75.77 kB / 441.8 MB, free: 6.848 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06125/0.5464, allocations: 14.17 MB / 456 MB, free: 8.68 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5464, allocations: 4 kB / 456 MB, free: 8.676 MB / 347.1 MB Notification: Performance of Transformations before backend: time 6.029e-05/0.5465, allocations: 24 kB / 456 MB, free: 8.652 MB / 347.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.003448/0.55, allocations: 1.051 MB / 457.1 MB, free: 7.559 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.55, allocations: 12.03 kB / 457.1 MB, free: 7.547 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002752/0.5503, allocations: 102.8 kB / 457.2 MB, free: 7.445 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.5513, allocations: 0.4907 MB / 457.7 MB, free: 6.91 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.429e-05/0.5514, allocations: 25.12 kB / 457.7 MB, free: 6.887 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001874/0.5516, allocations: 52 kB / 457.7 MB, free: 6.836 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001999/0.5536, allocations: 0.6678 MB / 458.4 MB, free: 6.168 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.5556, allocations: 0.7166 MB / 459.1 MB, free: 5.438 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.5556, allocations: 0 / 459.1 MB, free: 5.438 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/0.5557, allocations: 0 / 459.1 MB, free: 5.438 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.5558, allocations: 20 kB / 459.1 MB, free: 5.418 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008158/0.5639, allocations: 2.952 MB / 462.1 MB, free: 2.355 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.5655, allocations: 0.5816 MB / 462.7 MB, free: 1.77 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008839/0.5664, allocations: 350.5 kB / 463 MB, free: 1.422 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-05/0.5665, allocations: 16.55 kB / 463 MB, free: 1.402 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.5666, allocations: 39.12 kB / 463.1 MB, free: 1.355 MB / 347.1 MB Notification: Performance of pre-optimization done (n=67): time 3.998e-06/0.5666, allocations: 5.906 kB / 463.1 MB, free: 1.352 MB / 347.1 MB Notification: Performance of matching and sorting (n=71): time 0.009435/0.5761, allocations: 2.192 MB / 465.3 MB, free: 15.11 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.642e-05/0.5762, allocations: 64.19 kB / 465.3 MB, free: 15.04 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007482/0.577, allocations: 389.4 kB / 465.7 MB, free: 14.65 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 9.283e-05/0.5771, allocations: 25.7 kB / 465.7 MB, free: 14.62 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003627/0.5774, allocations: 437.8 kB / 466.2 MB, free: 14.18 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002947/0.5777, allocations: 240.4 kB / 466.4 MB, free: 13.95 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.999e-05/0.5778, allocations: 0 / 466.4 MB, free: 13.95 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.578, allocations: 338.8 kB / 466.7 MB, free: 13.61 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007306/0.5787, allocations: 254.6 kB / 467 MB, free: 13.36 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008242/0.5796, allocations: 369.5 kB / 467.3 MB, free: 12.96 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002341/0.5819, allocations: 472.2 kB / 467.8 MB, free: 12.5 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.582, allocations: 4 kB / 467.8 MB, free: 12.5 MB / 363.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004264/0.5862, allocations: 1.02 MB / 468.8 MB, free: 11.46 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.5863, allocations: 7.953 kB / 468.8 MB, free: 11.46 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.5863, allocations: 4.219 kB / 468.8 MB, free: 11.45 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009426/0.5873, allocations: 168.8 kB / 469 MB, free: 11.29 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/0.5891, allocations: 195.7 kB / 469.2 MB, free: 11.09 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00599/0.5951, allocations: 2.526 MB / 471.7 MB, free: 8.453 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.5963, allocations: 31.91 kB / 471.8 MB, free: 8.422 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.5965, allocations: 32.83 kB / 471.8 MB, free: 8.391 MB / 363.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002689/0.5968, allocations: 117.8 kB / 471.9 MB, free: 8.27 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.597, allocations: 63.25 kB / 472 MB, free: 8.207 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.5972, allocations: 78.11 kB / 472 MB, free: 8.129 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.5973, allocations: 12 kB / 472.1 MB, free: 8.117 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/0.5973, allocations: 3.984 kB / 472.1 MB, free: 8.113 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.5973, allocations: 4 kB / 472.1 MB, free: 8.109 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/0.5989, allocations: 0.7252 MB / 472.8 MB, free: 7.344 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5989, allocations: 0 / 472.8 MB, free: 7.344 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/0.6004, allocations: 155.8 kB / 472.9 MB, free: 7.191 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009279/0.6014, allocations: 175.8 kB / 473.1 MB, free: 7.02 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/0.6015, allocations: 15.97 kB / 473.1 MB, free: 7.004 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005551/0.6071, allocations: 2.527 MB / 475.7 MB, free: 4.363 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.6072, allocations: 0 / 475.7 MB, free: 4.363 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005052/0.6122, allocations: 1.404 MB / 477.1 MB, free: 2.941 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003152/0.6126, allocations: 128.4 kB / 477.2 MB, free: 2.797 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.6128, allocations: 4.234 kB / 477.2 MB, free: 2.793 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.6138, allocations: 51.97 kB / 477.2 MB, free: 2.742 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/0.6141, allocations: 52.7 kB / 477.3 MB, free: 2.691 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.248e-05/0.6142, allocations: 27.97 kB / 477.3 MB, free: 2.664 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0005597/0.6147, allocations: 296.8 kB / 477.6 MB, free: 2.375 MB / 363.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6148, allocations: 4 kB / 477.6 MB, free: 2.371 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0012/0.616, allocations: 207.9 kB / 477.8 MB, free: 2.168 MB / 363.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003927/0.6164, allocations: 136.8 kB / 477.9 MB, free: 2.027 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002938/0.6193, allocations: 0.8775 MB / 478.8 MB, free: 1.137 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.6194, allocations: 0.6875 kB / 478.8 MB, free: 1.137 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001962/0.6213, allocations: 0.5631 MB / 479.4 MB, free: 0.5664 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009311/0.6223, allocations: 93.08 kB / 479.5 MB, free: 492 kB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.6266, allocations: 1.57 MB / 481 MB, free: 14.88 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007137/0.6273, allocations: 0.9696 MB / 482 MB, free: 13.88 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004738/0.6278, allocations: 63.41 kB / 482.1 MB, free: 13.81 MB / 379.1 MB Notification: Performance of SimCode: time 8.81e-07/0.6278, allocations: 0 / 482.1 MB, free: 13.81 MB / 379.1 MB Notification: Performance of Templates: time 0.02892/0.6568, allocations: 12.71 MB / 494.8 MB, free: 1.129 MB / 379.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches