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.001122/0.001122, allocations: 112.4 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 204 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 59.91 kB / 359.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2534, allocations: 50.54 MB / 410 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.00844/0.2619, allocations: 7.88 MB / 417.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003682/0.2656, allocations: 1.909 MB / 419.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005272/0.2661, allocations: 23.94 kB / 419.8 MB, free: 7.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004433/0.2666, allocations: 233.7 kB / 420 MB, free: 7.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007216/0.2674, allocations: 440.2 kB / 420.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008727/0.2682, allocations: 0.4994 MB / 420.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001771/0.27, allocations: 1.794 MB / 422.7 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008819/0.2709, allocations: 0.613 MB / 423.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007218/0.2717, allocations: 0.6344 MB / 424 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008761/0.2725, allocations: 0.7233 MB / 424.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000214/0.2728, allocations: 180 kB / 424.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.273, allocations: 183.9 kB / 425.1 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003083/0.2733, allocations: 346.8 kB / 425.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006586/0.274, allocations: 0.7814 MB / 426.2 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001656/0.2757, allocations: 2.041 MB / 428.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2757, allocations: 0 / 428.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.2757, allocations: 0 / 428.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.2757, allocations: 4 kB / 428.2 MB, free: 15.15 MB / 350.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.00323/0.279, allocations: 1.789 MB / 430 MB, free: 13.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.279, allocations: 8.031 kB / 430 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002243/0.2792, allocations: 159.1 kB / 430.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.2803, allocations: 0.7608 MB / 430.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.966e-05/0.2804, allocations: 90.39 kB / 431 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.2805, allocations: 120 kB / 431.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.283, allocations: 1.312 MB / 432.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.283, allocations: 3.984 kB / 432.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.2831, allocations: 55.94 kB / 432.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.2832, allocations: 32 kB / 432.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002433/0.2856, allocations: 1.118 MB / 433.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00747/0.2931, allocations: 4.945 MB / 438.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002433/0.2956, allocations: 1.211 MB / 439.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.2967, allocations: 0.5371 MB / 440.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.78e-05/0.2968, allocations: 8.656 kB / 440.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.2968, allocations: 43.22 kB / 440.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 3.447e-06/0.2968, allocations: 4 kB / 440.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.008889/0.3057, allocations: 2.932 MB / 443.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.3058, allocations: 89.77 kB / 443.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001201/0.307, allocations: 0.802 MB / 444.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.691e-05/0.3071, allocations: 41.7 kB / 444.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.3075, allocations: 0.5881 MB / 444.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.3077, allocations: 279.9 kB / 445.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.308, allocations: 170.5 kB / 445.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3081, allocations: 345.9 kB / 445.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000887/0.309, allocations: 377.7 kB / 446 MB, free: 12.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.31, allocations: 0.5739 MB / 446.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.3119, allocations: 0.9519 MB / 447.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.054e-06/0.3119, allocations: 4 kB / 447.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003168/0.3151, allocations: 1.354 MB / 448.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3151, allocations: 11.12 kB / 448.9 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3151, allocations: 8 kB / 448.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007933/0.3159, allocations: 234.7 kB / 449.1 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00361/0.3195, allocations: 0.8272 MB / 450 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/0.3327, allocations: 10.84 MB / 460.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.3338, allocations: 142.8 kB / 460.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/0.3339, allocations: 39.98 kB / 461 MB, free: 12.71 MB / 382.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.0005735/0.3345, allocations: 277.6 kB / 461.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.3348, allocations: 94.88 kB / 461.3 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002422/0.335, allocations: 108.8 kB / 461.5 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.335, allocations: 11.98 kB / 461.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.335, allocations: 8 kB / 461.5 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.3351, allocations: 7.922 kB / 461.5 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005386/0.3405, allocations: 2.456 MB / 463.9 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.3405, allocations: 4 kB / 463.9 MB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005296/0.341, allocations: 123.9 kB / 464.1 MB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/0.3424, allocations: 424.7 kB / 464.5 MB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-05/0.3424, allocations: 16 kB / 464.5 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01251/0.3549, allocations: 10.88 MB / 475.4 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.355, allocations: 0 / 475.4 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004693/0.3597, allocations: 1.944 MB / 477.3 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/0.36, allocations: 183.9 kB / 477.5 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.3602, allocations: 20 kB / 477.5 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008304/0.361, allocations: 107.8 kB / 477.6 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.3612, allocations: 64.42 kB / 477.7 MB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.553e-05/0.3612, allocations: 20 kB / 477.7 MB, free: 10.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007413/0.362, allocations: 0.5537 MB / 478.3 MB, free: 10.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.362, allocations: 4 kB / 478.3 MB, free: 10.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001313/0.3633, allocations: 358.9 kB / 478.6 MB, free: 10.06 MB / 398.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.0002154/0.3635, allocations: 134.7 kB / 478.7 MB, free: 9.926 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006517/0.37, allocations: 1.991 MB / 480.7 MB, free: 7.898 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3701, allocations: 0 / 480.7 MB, free: 7.898 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.3718, allocations: 1.163 MB / 481.9 MB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.373, allocations: 212.3 kB / 482.1 MB, free: 6.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004984/0.378, allocations: 2.312 MB / 484.4 MB, free: 4.098 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006587/0.3787, allocations: 1.074 MB / 485.5 MB, free: 2.996 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002222/0.3789, allocations: 67.44 kB / 485.6 MB, free: 2.93 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3789, allocations: 3.938 kB / 485.6 MB, free: 2.926 MB / 398.1 MB Notification: Performance of Templates: time 0.04078/0.4197, allocations: 43.15 MB / 0.5163 GB, free: 7.781 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/ControlCircuit/ControlCircuit.csv","/var/lib/jenkins1/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