Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.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.ControlCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|firstOrder1A.c.v|firstOrder1B.y|firstOrder2A.c.v|firstOrder2B.y|PIA.c.v|PIB.x|addA.opAmp.v_out|addB.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|firstOrder1A.c.v|firstOrder1B.y|firstOrder2A.c.v|firstOrder2B.y|PIA.c.v|PIB.x|addA.opAmp.v_out|addB.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 110.3 kB / 16.51 MB, free: 6.707 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.001077/0.001077, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.395/1.395, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 48.39 kB / 300 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09835, allocations: 49.44 MB / 349.4 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.009194/0.1076, allocations: 7.852 MB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003565/0.1112, allocations: 1.851 MB / 359.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.1124, allocations: 23.94 kB / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000833/0.1133, allocations: 174.6 kB / 359.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001346/0.1147, allocations: 377.1 kB / 359.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.1157, allocations: 455.6 kB / 360.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001972/0.1177, allocations: 1.685 MB / 361.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008613/0.1185, allocations: 0.5292 MB / 362.3 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007798/0.1193, allocations: 0.5602 MB / 362.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008929/0.1202, allocations: 0.6609 MB / 363.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000293/0.1205, allocations: 96 kB / 363.6 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003285/0.1209, allocations: 96 kB / 363.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.1211, allocations: 278.8 kB / 364 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006024/0.1217, allocations: 0.6917 MB / 364.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001391/0.1231, allocations: 1.962 MB / 366.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1231, allocations: 0 / 366.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1231, allocations: 3.938 kB / 366.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.1231, allocations: 0 / 366.7 MB, free: 3.281 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.003079/0.1262, allocations: 1.789 MB / 368.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.1263, allocations: 8.031 kB / 368.5 MB, free: 1.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.1265, allocations: 155.2 kB / 368.6 MB, free: 1.277 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008832/0.1274, allocations: 0.7334 MB / 369.3 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.016e-05/0.1275, allocations: 98.39 kB / 369.4 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.1276, allocations: 120 kB / 369.6 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2014/0.329, allocations: 1.306 MB / 370.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/0.3291, allocations: 2.625 kB / 370.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.3292, allocations: 51.62 kB / 370.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.95e-05/0.3292, allocations: 30.62 kB / 370.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002612/0.3319, allocations: 1.121 MB / 372.1 MB, free: 24.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008521/0.3404, allocations: 4.982 MB / 377.1 MB, free: 21.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/0.3429, allocations: 1.215 MB / 378.3 MB, free: 20.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00117/0.3441, allocations: 0.5283 MB / 378.8 MB, free: 20.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.209e-05/0.3442, allocations: 8.969 kB / 378.8 MB, free: 20.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.3442, allocations: 44.92 kB / 378.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 3.377e-06/0.3442, allocations: 4.578 kB / 378.9 MB, free: 20.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.008658/0.3529, allocations: 2.933 MB / 381.8 MB, free: 19.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.353, allocations: 86.19 kB / 381.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/0.3543, allocations: 0.8096 MB / 382.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.768e-05/0.3544, allocations: 40.03 kB / 382.7 MB, free: 18.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004111/0.3548, allocations: 0.5937 MB / 383.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.355, allocations: 281.1 kB / 383.6 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.3553, allocations: 169 kB / 383.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.011e-05/0.3554, allocations: 341.3 kB / 384.1 MB, free: 17.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008928/0.3563, allocations: 371.2 kB / 384.4 MB, free: 17.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009541/0.3573, allocations: 0.5771 MB / 385 MB, free: 17.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001743/0.359, allocations: 0.9538 MB / 386 MB, free: 16.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.359, allocations: 7.188 kB / 386 MB, free: 16.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003075/0.3621, allocations: 1.358 MB / 387.3 MB, free: 16.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.3622, allocations: 11.78 kB / 387.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.3622, allocations: 6.938 kB / 387.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008426/0.363, allocations: 218.2 kB / 387.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003365/0.3664, allocations: 0.8356 MB / 388.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.3768, allocations: 10.01 MB / 398.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3778, allocations: 149.1 kB / 398.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.485e-05/0.3779, allocations: 36.38 kB / 398.6 MB, free: 6.402 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (111): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004607/0.3784, allocations: 278.6 kB / 398.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.3785, allocations: 107.9 kB / 399 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001565/0.3787, allocations: 101.8 kB / 399.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3787, allocations: 10.44 kB / 399.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/0.3787, allocations: 0 / 399.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3787, allocations: 3.984 kB / 399.1 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004436/0.3832, allocations: 2.456 MB / 401.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.3832, allocations: 4 kB / 401.5 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.3838, allocations: 119.9 kB / 401.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.385, allocations: 429.8 kB / 402.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.352e-05/0.3851, allocations: 16 kB / 402.1 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/0.3962, allocations: 9.952 MB / 412.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.3963, allocations: 3.938 kB / 412.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004912/0.4012, allocations: 1.943 MB / 414 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003454/0.4016, allocations: 191.7 kB / 414.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.4017, allocations: 12 kB / 414.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000792/0.4025, allocations: 108.2 kB / 414.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.4027, allocations: 64.41 kB / 414.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-05/0.4027, allocations: 24 kB / 414.4 MB, free: 6.719 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007404/0.4035, allocations: 0.5513 MB / 414.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4035, allocations: 0 / 414.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001355/0.4049, allocations: 359 kB / 415.3 MB, free: 5.824 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (PIA.c.v,firstOrder1A.c.v,firstOrder2A.c.v,PIB.x,firstOrder1B.y,firstOrder2B.y) * 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 (58): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,5), (1,5), (1,1), (1,7), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002305/0.4051, allocations: 131.2 kB / 415.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005972/0.4111, allocations: 1.983 MB / 417.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.4111, allocations: 4 kB / 417.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.4129, allocations: 1.146 MB / 418.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.4143, allocations: 195.1 kB / 418.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00529/0.4196, allocations: 2.826 MB / 421.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007454/0.4204, allocations: 1.074 MB / 422.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005582/0.4209, allocations: 99.5 kB / 422.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.4211, allocations: 55.44 kB / 422.8 MB, free: 14.13 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4211, allocations: 3.938 kB / 422.8 MB, free: 14.13 MB / 334.1 MB Notification: Performance of Templates: time 0.02627/0.4474, allocations: 13.49 MB / 436.3 MB, free: 0.7773 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/ControlCircuit/ControlCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches