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.0009134/0.0009135, allocations: 97.62 kB / 17.31 MB, free: 5.938 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.0009877/0.0009877, allocations: 182.8 kB / 18.21 MB, free: 5.418 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.281/1.281, allocations: 223.3 MB / 242.3 MB, free: 0 / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000227/0.000227, allocations: 8 kB / 302.1 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07486/0.0751, allocations: 50.41 MB / 352.5 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.006491/0.08163, allocations: 7.334 MB / 359.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.0839, allocations: 1.831 MB / 361.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003564/0.08427, allocations: 31.88 kB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003112/0.08459, allocations: 178.7 kB / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006656/0.08527, allocations: 377 kB / 362.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006363/0.08591, allocations: 455.6 kB / 362.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.08729, allocations: 1.689 MB / 364.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006621/0.08796, allocations: 0.5175 MB / 364.9 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004448/0.08842, allocations: 0.5172 MB / 365.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005633/0.08899, allocations: 0.6023 MB / 366 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.08912, allocations: 76 kB / 366.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.08928, allocations: 72 kB / 366.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.08946, allocations: 250.8 kB / 366.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000518/0.08999, allocations: 0.6854 MB / 367.1 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.09122, allocations: 1.582 MB / 368.7 MB, free: 3.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.09123, allocations: 0 / 368.7 MB, free: 3.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09123, allocations: 0 / 368.7 MB, free: 3.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.09125, allocations: 4 kB / 368.7 MB, free: 3.355 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.002833/0.09409, allocations: 1.583 MB / 370.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.09413, allocations: 12.03 kB / 370.3 MB, free: 1.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.09435, allocations: 155.2 kB / 370.4 MB, free: 1.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009151/0.09528, allocations: 0.7373 MB / 371.2 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.703e-05/0.09535, allocations: 98.39 kB / 371.3 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000166/0.09553, allocations: 120 kB / 371.4 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1404/0.236, allocations: 1.321 MB / 372.7 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.825e-05/0.236, allocations: 2.906 kB / 372.7 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.2362, allocations: 52.38 kB / 372.8 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.714e-05/0.2362, allocations: 30.09 kB / 372.8 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002778/0.239, allocations: 1.162 MB / 373.9 MB, free: 23.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007476/0.2465, allocations: 5.055 MB / 379 MB, free: 21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002416/0.2489, allocations: 1.256 MB / 380.3 MB, free: 20.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.2501, allocations: 0.5448 MB / 380.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.444e-05/0.2501, allocations: 11.22 kB / 380.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.2502, allocations: 52.94 kB / 380.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 2.395e-06/0.2502, allocations: 0 / 380.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.008908/0.2591, allocations: 3.162 MB / 384 MB, free: 19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.807e-05/0.2591, allocations: 91.55 kB / 384.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009767/0.2601, allocations: 0.8107 MB / 384.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.2602, allocations: 41.27 kB / 385 MB, free: 18.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002795/0.2605, allocations: 0.5866 MB / 385.6 MB, free: 18.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.2606, allocations: 277.4 kB / 385.8 MB, free: 17.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.626e-05/0.2607, allocations: 83.95 kB / 385.9 MB, free: 17.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.323e-05/0.2608, allocations: 346 kB / 386.2 MB, free: 17.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/0.2617, allocations: 388.4 kB / 386.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000974/0.2627, allocations: 0.602 MB / 387.2 MB, free: 16.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/0.2645, allocations: 0.9961 MB / 388.2 MB, free: 16.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.2645, allocations: 9.922 kB / 388.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003025/0.2676, allocations: 1.407 MB / 389.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.2676, allocations: 12.06 kB / 389.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.2676, allocations: 10.98 kB / 389.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007297/0.2683, allocations: 236.4 kB / 389.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003694/0.272, allocations: 0.9342 MB / 390.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/0.2825, allocations: 10.22 MB / 401 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007849/0.2833, allocations: 157.8 kB / 401.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.296e-05/0.2834, allocations: 35.66 kB / 401.2 MB, free: 5.922 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.0003183/0.2837, allocations: 276.7 kB / 401.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.2838, allocations: 98 kB / 401.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001824/0.284, allocations: 106 kB / 401.7 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.284, allocations: 11.94 kB / 401.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.284, allocations: 1.125 kB / 401.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.284, allocations: 3.984 kB / 401.7 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004515/0.2886, allocations: 2.545 MB / 404.3 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.768e-06/0.2886, allocations: 0 / 404.3 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005054/0.2891, allocations: 127.9 kB / 404.4 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.2903, allocations: 452.8 kB / 404.8 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.2904, allocations: 19.98 kB / 404.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/0.3015, allocations: 10.12 MB / 415 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3015, allocations: 0 / 415 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004786/0.3063, allocations: 2.061 MB / 417 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.3065, allocations: 187.8 kB / 417.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.3066, allocations: 12 kB / 417.2 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000835/0.3075, allocations: 127.8 kB / 417.4 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.3076, allocations: 56.48 kB / 417.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.866e-05/0.3077, allocations: 27.98 kB / 417.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006447/0.3083, allocations: 0.5459 MB / 418 MB, free: 4.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3083, allocations: 0 / 418 MB, free: 4.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001094/0.3094, allocations: 359 kB / 418.3 MB, free: 3.992 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.0001605/0.3096, allocations: 135.5 kB / 418.5 MB, free: 3.848 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006093/0.3157, allocations: 2.141 MB / 420.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3157, allocations: 0 / 420.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/0.3173, allocations: 1.177 MB / 421.8 MB, free: 432 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.3184, allocations: 203.5 kB / 422 MB, free: 228 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004662/0.3231, allocations: 2.958 MB / 424.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005991/0.3237, allocations: 1.078 MB / 426 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.3239, allocations: 59.44 kB / 426.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3239, allocations: 0 / 426.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of Templates: time 0.03915/0.3631, allocations: 42.9 MB / 469 MB, free: 1.164 MB / 366.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/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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches