Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001602/0.001602, allocations: 103.9 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001821/0.001822, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.3 MB, free: 10.87 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.02 kB / 306.3 MB, free: 1.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1049, allocations: 50.54 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.009495/0.1145, allocations: 7.86 MB / 364.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004193/0.1187, allocations: 1.893 MB / 366.6 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.12, allocations: 23.94 kB / 366.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008058/0.1209, allocations: 174.6 kB / 366.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001522/0.1224, allocations: 377.1 kB / 367.1 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.1236, allocations: 455.6 kB / 367.6 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001912/0.1255, allocations: 1.688 MB / 369.3 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007334/0.1262, allocations: 0.5253 MB / 369.8 MB, free: 1.484 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005689/0.1268, allocations: 0.5602 MB / 370.3 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000565/0.1274, allocations: 0.6609 MB / 371 MB, free: 264 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.1275, allocations: 96 kB / 371.1 MB, free: 168 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002025/0.1278, allocations: 96 kB / 371.2 MB, free: 72 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2112/0.339, allocations: 271 kB / 371.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.3404, allocations: 0.6963 MB / 372.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002312/0.3427, allocations: 1.968 MB / 374.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.3427, allocations: 1.062 kB / 374.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3427, allocations: 0 / 374.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.971e-05/0.3428, allocations: 0 / 374.1 MB, free: 10.74 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.004414/0.3472, allocations: 1.777 MB / 375.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.982e-05/0.3473, allocations: 10.19 kB / 375.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003261/0.3476, allocations: 157.7 kB / 376.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.3489, allocations: 0.7378 MB / 376.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.144e-05/0.349, allocations: 88.64 kB / 376.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.3491, allocations: 124 kB / 377 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002634/0.3518, allocations: 1.312 MB / 378.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/0.3518, allocations: 1.078 kB / 378.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.3519, allocations: 52.53 kB / 378.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.222e-05/0.352, allocations: 35.23 kB / 378.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002546/0.3545, allocations: 1.119 MB / 379.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008026/0.3626, allocations: 4.992 MB / 384.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.3652, allocations: 1.207 MB / 385.7 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.3662, allocations: 0.5301 MB / 386.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.253e-05/0.3663, allocations: 12.53 kB / 386.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.3664, allocations: 47.25 kB / 386.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 2.925e-06/0.3664, allocations: 1.125 kB / 386.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.008424/0.3748, allocations: 2.934 MB / 389.2 MB, free: 4.273 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.3749, allocations: 93.83 kB / 389.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.3761, allocations: 0.8075 MB / 390.1 MB, free: 3.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.662e-05/0.3762, allocations: 37.33 kB / 390.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002847/0.3765, allocations: 0.588 MB / 390.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.3767, allocations: 284.9 kB / 391 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002549/0.3769, allocations: 170.1 kB / 391.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.348e-05/0.377, allocations: 342.4 kB / 391.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008501/0.3779, allocations: 365.7 kB / 391.9 MB, free: 2.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009173/0.3788, allocations: 0.5802 MB / 392.5 MB, free: 1.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.3805, allocations: 0.9536 MB / 393.4 MB, free: 1.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.3805, allocations: 2.75 kB / 393.4 MB, free: 1.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002883/0.3834, allocations: 1.355 MB / 394.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3834, allocations: 11.66 kB / 394.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.3834, allocations: 10 kB / 394.8 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007797/0.3842, allocations: 219.7 kB / 395 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003256/0.3875, allocations: 0.836 MB / 395.9 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/0.4001, allocations: 10.01 MB / 405.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.4013, allocations: 140.5 kB / 406 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.4014, allocations: 37.47 kB / 406.1 MB, free: 7.039 MB / 318.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.0007095/0.4021, allocations: 274.8 kB / 406.3 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003244/0.4025, allocations: 102.1 kB / 406.4 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002763/0.4028, allocations: 109.4 kB / 406.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.4028, allocations: 8 kB / 406.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.4028, allocations: 0 / 406.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.4028, allocations: 3.984 kB / 406.5 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005819/0.4086, allocations: 2.463 MB / 409 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.4087, allocations: 0 / 409 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005639/0.4092, allocations: 125.4 kB / 409.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.4106, allocations: 423.5 kB / 409.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.56e-05/0.4107, allocations: 20 kB / 409.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/0.4224, allocations: 9.964 MB / 419.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4225, allocations: 0 / 419.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004757/0.4272, allocations: 1.937 MB / 421.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004424/0.4277, allocations: 187.8 kB / 421.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.4279, allocations: 12 kB / 421.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008593/0.4288, allocations: 103.9 kB / 421.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.429, allocations: 67.41 kB / 421.8 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-05/0.429, allocations: 24 kB / 421.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008453/0.4299, allocations: 0.5498 MB / 422.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4299, allocations: 0 / 422.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001521/0.4314, allocations: 359 kB / 422.7 MB, free: 5.625 MB / 334.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.0002559/0.4317, allocations: 124.6 kB / 422.9 MB, free: 5.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00566/0.4374, allocations: 1.994 MB / 424.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4374, allocations: 0 / 424.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.4391, allocations: 1.156 MB / 426 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.4403, allocations: 193.5 kB / 426.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005111/0.4455, allocations: 2.825 MB / 429 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008612/0.4463, allocations: 1.074 MB / 430.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000542/0.4469, allocations: 107.6 kB / 430.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.4471, allocations: 55.44 kB / 430.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4471, allocations: 0 / 430.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of Templates: time 0.02356/0.4707, allocations: 13.48 MB / 443.7 MB, free: 0.6445 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches