Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 111.1 kB / 17.74 MB, free: 5.312 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.001112/0.001112, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.289/1.289, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2231, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.003994/0.2271, allocations: 3.224 MB / 404.6 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2286, allocations: 0.9545 MB / 405.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.2287, allocations: 7.938 kB / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.2289, allocations: 59.42 kB / 405.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.2293, allocations: 128.9 kB / 405.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.2296, allocations: 147.7 kB / 405.9 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004264/0.23, allocations: 482 kB / 406.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.2302, allocations: 131.2 kB / 406.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.2304, allocations: 191.3 kB / 406.7 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.2307, allocations: 203.1 kB / 406.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.972e-05/0.2308, allocations: 40 kB / 407 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.2309, allocations: 75.95 kB / 407 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.487e-05/0.231, allocations: 91.62 kB / 407.1 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.2312, allocations: 219 kB / 407.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004579/0.2316, allocations: 0.4916 MB / 407.8 MB, free: 2.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2317, allocations: 4 kB / 407.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2317, allocations: 0 / 407.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.2317, allocations: 0 / 407.8 MB, free: 2.441 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001233/0.2329, allocations: 0.7287 MB / 408.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.233, allocations: 8.031 kB / 408.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.775e-05/0.2331, allocations: 52.36 kB / 408.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.2335, allocations: 303.4 kB / 408.9 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.2335, allocations: 25.03 kB / 408.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-05/0.2335, allocations: 44.28 kB / 409 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000642/0.2342, allocations: 353.3 kB / 409.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.2342, allocations: 3.984 kB / 409.3 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.487e-05/0.2343, allocations: 19.94 kB / 409.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.2343, allocations: 8 kB / 409.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004722/0.2348, allocations: 230.5 kB / 409.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.2366, allocations: 1.17 MB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006399/0.2373, allocations: 275.5 kB / 411 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005073/0.2378, allocations: 217.2 kB / 411.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007191/0.2385, allocations: 1.117 MB / 412.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.2385, allocations: 34.8 kB / 412.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.553e-06/0.2386, allocations: 0 / 412.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001338/0.2399, allocations: 0.5333 MB / 412.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.24, allocations: 85.09 kB / 413 MB, free: 12.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.2403, allocations: 328.5 kB / 413.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.2403, allocations: 33.7 kB / 413.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.2405, allocations: 216.2 kB / 413.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.092e-05/0.2406, allocations: 102.5 kB / 413.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.2407, allocations: 62.08 kB / 413.7 MB, free: 12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.2408, allocations: 350.7 kB / 414.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.2411, allocations: 104.7 kB / 414.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.2413, allocations: 185.8 kB / 414.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/0.2418, allocations: 292.3 kB / 414.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2418, allocations: 0 / 414.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007666/0.2426, allocations: 429.4 kB / 415.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2426, allocations: 11.94 kB / 415.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2426, allocations: 4.234 kB / 415.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002421/0.2429, allocations: 64.83 kB / 415.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000317/0.2432, allocations: 75.89 kB / 415.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.245, allocations: 1.97 MB / 417.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.2453, allocations: 47.61 kB / 417.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.2453, allocations: 8 kB / 417.2 MB, free: 8.277 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 36 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001544/0.2455, allocations: 153.7 kB / 417.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.2456, allocations: 31.62 kB / 417.4 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006967/0.2463, allocations: 338.3 kB / 417.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.2463, allocations: 4 kB / 417.8 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.2463, allocations: 3.938 kB / 417.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.2463, allocations: 3.984 kB / 417.8 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004341/0.2467, allocations: 397.2 kB / 418.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2467, allocations: 0 / 418.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003398/0.2471, allocations: 51.95 kB / 418.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001794/0.2473, allocations: 68.75 kB / 418.3 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.2473, allocations: 8 kB / 418.3 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003981/0.2477, allocations: 0.603 MB / 418.9 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2477, allocations: 0 / 418.9 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008905/0.2486, allocations: 0.521 MB / 419.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.208e-05/0.2487, allocations: 112.7 kB / 419.5 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.147e-05/0.2488, allocations: 8 kB / 419.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.2491, allocations: 19.98 kB / 419.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.2491, allocations: 19.97 kB / 419.6 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.2491, allocations: 4 kB / 419.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002247/0.2494, allocations: 239 kB / 419.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2494, allocations: 0 / 419.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004451/0.2498, allocations: 115.8 kB / 419.9 MB, free: 5.473 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * 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 (20): * Single equations (assignments): 19 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001988/0.25, allocations: 132.7 kB / 420 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008013/0.2508, allocations: 430.3 kB / 420.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2509, allocations: 0 / 420.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003491/0.2512, allocations: 143.8 kB / 420.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.2516, allocations: 49.95 kB / 420.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.2529, allocations: 0.8869 MB / 421.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.2532, allocations: 0.7912 MB / 422.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.186e-05/0.2533, allocations: 31.42 kB / 422.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2533, allocations: 0 / 422.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of Templates: time 0.007212/0.2605, allocations: 5.437 MB / 427.8 MB, free: 13.51 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x Variables in the result:opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x,time