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.001218/0.001222, allocations: 115.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001373, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 58.91 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1043, allocations: 50.55 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.007884/0.1122, allocations: 7.87 MB / 366.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003819/0.1161, allocations: 1.909 MB / 368.7 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007015/0.1168, allocations: 27.94 kB / 368.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000528/0.1174, allocations: 233.7 kB / 369 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008945/0.1183, allocations: 448.2 kB / 369.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008052/0.1191, allocations: 499.4 kB / 369.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001543/0.1206, allocations: 1.806 MB / 371.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1654/0.286, allocations: 0.6074 MB / 372.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.2871, allocations: 0.6439 MB / 372.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007617/0.2879, allocations: 0.7129 MB / 373.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002463/0.2882, allocations: 178.3 kB / 373.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.2884, allocations: 179.3 kB / 374 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.2887, allocations: 359 kB / 374.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006152/0.2893, allocations: 0.7754 MB / 375.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002159/0.2915, allocations: 2.048 MB / 377.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2915, allocations: 1.156 kB / 377.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.2915, allocations: 0 / 377.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.727e-05/0.2915, allocations: 0 / 377.2 MB, free: 9.906 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.003717/0.2953, allocations: 1.785 MB / 379 MB, free: 9.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.2953, allocations: 12.72 kB / 379 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002726/0.2956, allocations: 154.3 kB / 379.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001242/0.2968, allocations: 0.7562 MB / 379.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.598e-05/0.2969, allocations: 90.64 kB / 380 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.2971, allocations: 123.2 kB / 380.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003164/0.3003, allocations: 1.314 MB / 381.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.3003, allocations: 0 / 381.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001211/0.3004, allocations: 52.59 kB / 381.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.565e-05/0.3005, allocations: 30.72 kB / 381.5 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002683/0.3032, allocations: 1.123 MB / 382.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007445/0.3106, allocations: 4.947 MB / 387.5 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0023/0.313, allocations: 1.215 MB / 388.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.3141, allocations: 0.5273 MB / 389.3 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.504e-05/0.3141, allocations: 12.27 kB / 389.3 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.3142, allocations: 46.03 kB / 389.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 2.274e-06/0.3142, allocations: 0.9688 kB / 389.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.008125/0.3223, allocations: 2.93 MB / 392.3 MB, free: 2.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.3224, allocations: 88.73 kB / 392.4 MB, free: 2.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.3235, allocations: 0.8103 MB / 393.2 MB, free: 2.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.648e-05/0.3236, allocations: 42.14 kB / 393.2 MB, free: 2.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.3239, allocations: 0.583 MB / 393.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.3241, allocations: 282 kB / 394.1 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.3243, allocations: 169.9 kB / 394.2 MB, free: 1.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.176e-05/0.3244, allocations: 347.5 kB / 394.6 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008177/0.3252, allocations: 365.9 kB / 394.9 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009363/0.3261, allocations: 0.5792 MB / 395.5 MB, free: 280 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001838/0.328, allocations: 0.9572 MB / 396.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.328, allocations: 2.094 kB / 396.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003044/0.3311, allocations: 1.363 MB / 397.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.3311, allocations: 12.56 kB / 397.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.3311, allocations: 10.31 kB / 397.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000784/0.3319, allocations: 219.8 kB / 398.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003417/0.3353, allocations: 0.8343 MB / 398.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/0.3486, allocations: 10.84 MB / 409.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.3498, allocations: 142.9 kB / 409.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.3499, allocations: 36 kB / 409.9 MB, free: 3.859 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.0005533/0.3504, allocations: 277.4 kB / 410.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/0.3507, allocations: 98.88 kB / 410.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002146/0.3509, allocations: 100.9 kB / 410.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.3509, allocations: 12 kB / 410.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.3509, allocations: 8.125 kB / 410.4 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3509, allocations: 3.984 kB / 410.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00525/0.3562, allocations: 2.456 MB / 412.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3562, allocations: 0 / 412.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005408/0.3568, allocations: 123.2 kB / 413 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.3581, allocations: 421.5 kB / 413.4 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.953e-05/0.3582, allocations: 19.98 kB / 413.4 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01304/0.3712, allocations: 10.9 MB / 424.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.3713, allocations: 4.031 kB / 424.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005046/0.3763, allocations: 1.934 MB / 426.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005024/0.3769, allocations: 187.7 kB / 426.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002357/0.3771, allocations: 15.98 kB / 426.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.3781, allocations: 99.92 kB / 426.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.3783, allocations: 75.97 kB / 426.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.791e-05/0.3784, allocations: 23.94 kB / 426.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009387/0.3794, allocations: 0.5459 MB / 427.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3794, allocations: 3.938 kB / 427.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001665/0.3811, allocations: 359.1 kB / 427.6 MB, free: 1.348 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.000272/0.3813, allocations: 130.8 kB / 427.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006102/0.3874, allocations: 1.993 MB / 429.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.3875, allocations: 5.312 kB / 429.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.3893, allocations: 1.167 MB / 430.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.3908, allocations: 203.3 kB / 431 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005542/0.3964, allocations: 2.281 MB / 433.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009529/0.3973, allocations: 1.081 MB / 434.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004854/0.3978, allocations: 99.5 kB / 434.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.398, allocations: 63.44 kB / 434.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of SimCode: time 1.884e-06/0.398, allocations: 0 / 434.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of Templates: time 0.02542/0.4235, allocations: 14.39 MB / 449 MB, free: 11.98 MB / 366.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 -s gbode -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