Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.OpAmps.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|integrator.c.v|integrator.opAmp.out.v|integrator.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|integrator.c.v|integrator.opAmp.out.v|integrator.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 109.3 kB / 17.69 MB, free: 5.496 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.001699/0.001699, allocations: 188.1 kB / 18.62 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009604/0.0009605, allocations: 55.91 kB / 351.9 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2391, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003976/0.2431, allocations: 2.863 MB / 404.2 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.2443, allocations: 0.7206 MB / 405 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.2445, allocations: 8 kB / 405 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.2446, allocations: 47.52 kB / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.2449, allocations: 99.17 kB / 405.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000313/0.2452, allocations: 107.8 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004112/0.2456, allocations: 390.6 kB / 405.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002415/0.2459, allocations: 131.2 kB / 405.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.2461, allocations: 151.4 kB / 405.9 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.2463, allocations: 167.2 kB / 406 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/0.2464, allocations: 36 kB / 406.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.042e-05/0.2464, allocations: 40 kB / 406.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.193e-05/0.2465, allocations: 75.69 kB / 406.2 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.2467, allocations: 171.2 kB / 406.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003867/0.2471, allocations: 423.7 kB / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2471, allocations: 0 / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2471, allocations: 0 / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.2471, allocations: 8 kB / 406.8 MB, free: 3.461 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001293/0.2484, allocations: 0.6487 MB / 407.4 MB, free: 2.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2485, allocations: 19.89 kB / 407.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.654e-05/0.2485, allocations: 32.56 kB / 407.5 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004024/0.249, allocations: 292.6 kB / 407.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.249, allocations: 16.94 kB / 407.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.287e-05/0.249, allocations: 28.36 kB / 407.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006895/0.2497, allocations: 320 kB / 408.1 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2498, allocations: 0 / 408.1 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.2498, allocations: 8 kB / 408.1 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.2498, allocations: 11.98 kB / 408.1 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007974/0.2506, allocations: 274 kB / 408.4 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.2526, allocations: 1.169 MB / 409.6 MB, free: 488 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008881/0.2535, allocations: 242.6 kB / 409.8 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.2538, allocations: 100.8 kB / 409.9 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.2538, allocations: 0 / 409.9 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004855/0.2543, allocations: 180.9 kB / 410.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.2543, allocations: 0 / 410.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002115/0.2565, allocations: 0.585 MB / 410.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.2565, allocations: 88.98 kB / 410.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002917/0.2568, allocations: 274.4 kB / 411 MB, free: 14.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.2569, allocations: 25.7 kB / 411 MB, free: 14.9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.257, allocations: 195.6 kB / 411.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.846e-05/0.257, allocations: 43.36 kB / 411.3 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.629e-05/0.2571, allocations: 45.7 kB / 411.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2573, allocations: 338.8 kB / 411.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.2576, allocations: 96.16 kB / 411.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.258, allocations: 194.2 kB / 411.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006993/0.2587, allocations: 307.7 kB / 412.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.2587, allocations: 4 kB / 412.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001181/0.2599, allocations: 439.7 kB / 412.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.26, allocations: 41.62 kB / 412.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.26, allocations: 4 kB / 412.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003036/0.2603, allocations: 60.77 kB / 412.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.2606, allocations: 63.92 kB / 412.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/0.2627, allocations: 1.633 MB / 414.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.2631, allocations: 47.72 kB / 414.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.2631, allocations: 12 kB / 414.5 MB, free: 11.15 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: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001478/0.2633, allocations: 153.7 kB / 414.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.122e-05/0.2633, allocations: 19.8 kB / 414.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.38e-05/0.2634, allocations: 25.72 kB / 414.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2634, allocations: 0 / 414.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/0.2634, allocations: 0 / 414.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2634, allocations: 3.984 kB / 414.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.2637, allocations: 313.3 kB / 415 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2637, allocations: 0 / 415 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.2639, allocations: 35.97 kB / 415.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002288/0.2641, allocations: 68.75 kB / 415.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.2641, allocations: 0 / 415.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001935/0.2661, allocations: 1.621 MB / 416.8 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2661, allocations: 11.97 kB / 416.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.2674, allocations: 445.4 kB / 417.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.492e-05/0.2675, allocations: 108.8 kB / 417.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.2676, allocations: 0 / 417.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.2678, allocations: 23.97 kB / 417.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.33e-05/0.2679, allocations: 23.97 kB / 417.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.2679, allocations: 8 kB / 417.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.2681, allocations: 186 kB / 417.5 MB, free: 7.891 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2681, allocations: 4.062 kB / 417.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.2684, allocations: 71.84 kB / 417.6 MB, free: 7.816 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001258/0.2685, allocations: 106.7 kB / 417.7 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009282/0.2695, allocations: 413.9 kB / 418.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2695, allocations: 0 / 418.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004327/0.2699, allocations: 223 kB / 418.3 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.2703, allocations: 50.84 kB / 418.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003346/0.2736, allocations: 0.8974 MB / 419.3 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.2739, allocations: 0.748 MB / 420 MB, free: 5.289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.786e-05/0.274, allocations: 19.44 kB / 420.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.274, allocations: 0 / 420.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of Templates: time 0.006049/0.28, allocations: 4.545 MB / 424.6 MB, free: 0.7344 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Integrator/Integrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches