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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 115 kB / 16.63 MB, free: 6.812 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.001774/0.001774, allocations: 186 kB / 17.55 MB, free: 5.934 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.473/1.473, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 47.88 kB / 300.3 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1132, allocations: 49.44 MB / 349.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.009231/0.1225, allocations: 7.833 MB / 357.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004025/0.1266, allocations: 1.847 MB / 359.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.1279, allocations: 31.81 kB / 359.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008774/0.1288, allocations: 178.7 kB / 359.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001692/0.1306, allocations: 381.1 kB / 360 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.1316, allocations: 451.6 kB / 360.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001919/0.1336, allocations: 1.798 MB / 362.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007887/0.1344, allocations: 0.6052 MB / 362.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006103/0.135, allocations: 0.6423 MB / 363.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006345/0.1356, allocations: 0.7155 MB / 364.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002145/0.1359, allocations: 180 kB / 364.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.1361, allocations: 176 kB / 364.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002453/0.1363, allocations: 358.8 kB / 364.9 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006096/0.1369, allocations: 0.7814 MB / 365.6 MB, free: 4.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001583/0.1385, allocations: 2.017 MB / 367.7 MB, free: 2.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1386, allocations: 3.938 kB / 367.7 MB, free: 2.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1386, allocations: 3.984 kB / 367.7 MB, free: 2.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.905e-05/0.1386, allocations: 0 / 367.7 MB, free: 2.582 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.003215/0.1418, allocations: 1.792 MB / 369.5 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.1419, allocations: 8.031 kB / 369.5 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002361/0.1421, allocations: 182 kB / 369.6 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002387/0.1424, allocations: 155.2 kB / 369.8 MB, free: 400 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1605/0.3029, allocations: 0.741 MB / 370.5 MB, free: 24.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.3031, allocations: 92.25 kB / 370.6 MB, free: 24.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004831/0.3036, allocations: 121.7 kB / 370.7 MB, free: 24.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003911/0.3075, allocations: 1.308 MB / 372 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.3076, allocations: 1.344 kB / 372 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.3077, allocations: 54.81 kB / 372.1 MB, free: 24.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-05/0.3078, allocations: 31.95 kB / 372.1 MB, free: 24.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003092/0.3109, allocations: 1.126 MB / 373.3 MB, free: 23.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009652/0.3206, allocations: 4.975 MB / 378.2 MB, free: 20.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002934/0.3235, allocations: 1.209 MB / 379.4 MB, free: 20.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/0.3248, allocations: 0.5291 MB / 380 MB, free: 20.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.282e-05/0.3249, allocations: 7.859 kB / 380 MB, free: 20.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.3249, allocations: 50.98 kB / 380 MB, free: 20.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 4.679e-06/0.3249, allocations: 3.984 kB / 380 MB, free: 20.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.009478/0.3344, allocations: 2.923 MB / 383 MB, free: 18.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.3345, allocations: 90.39 kB / 383 MB, free: 18.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.336, allocations: 0.8137 MB / 383.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.866e-05/0.3361, allocations: 43.02 kB / 383.9 MB, free: 18.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004079/0.3366, allocations: 0.5906 MB / 384.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.3368, allocations: 281.9 kB / 384.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003019/0.3371, allocations: 164.6 kB / 384.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.574e-05/0.3372, allocations: 343 kB / 385.3 MB, free: 17.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009923/0.3382, allocations: 373.1 kB / 385.6 MB, free: 17.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.3393, allocations: 0.5744 MB / 386.2 MB, free: 16.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001988/0.3413, allocations: 0.9558 MB / 387.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.3413, allocations: 1.188 kB / 387.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003471/0.3448, allocations: 1.362 MB / 388.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.3448, allocations: 7.75 kB / 388.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.3449, allocations: 5.656 kB / 388.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008621/0.3457, allocations: 225.1 kB / 388.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003335/0.3491, allocations: 0.8325 MB / 389.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.3605, allocations: 10.85 MB / 400.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.3616, allocations: 138.9 kB / 400.6 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.3618, allocations: 39.38 kB / 400.6 MB, free: 5.109 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.0006256/0.3624, allocations: 280.2 kB / 400.9 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003029/0.3627, allocations: 101 kB / 401 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002126/0.3629, allocations: 104.3 kB / 401.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.3629, allocations: 7.625 kB / 401.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/0.363, allocations: 3.875 kB / 401.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.363, allocations: 3.984 kB / 401.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004874/0.3679, allocations: 2.454 MB / 403.6 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.77e-06/0.3679, allocations: 192 / 403.6 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005322/0.3684, allocations: 135.8 kB / 403.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/0.3697, allocations: 422.1 kB / 404.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.048e-05/0.3698, allocations: 20 kB / 404.1 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/0.3826, allocations: 10.89 MB / 415 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.3826, allocations: 4.812 kB / 415 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004777/0.3874, allocations: 1.938 MB / 417 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004027/0.3878, allocations: 187.7 kB / 417.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.388, allocations: 20 kB / 417.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008305/0.3888, allocations: 103.9 kB / 417.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.389, allocations: 56.48 kB / 417.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.065e-05/0.3891, allocations: 27.98 kB / 417.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007518/0.3898, allocations: 0.5459 MB / 417.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3898, allocations: 0 / 417.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001276/0.3911, allocations: 359 kB / 418.2 MB, free: 2.734 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.005011/0.3961, allocations: 2.527 MB / 420.8 MB, free: 156 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006449/0.4026, allocations: 2.023 MB / 422.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/0.4026, allocations: 0 / 422.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001947/0.4046, allocations: 1.163 MB / 423.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001528/0.4062, allocations: 216.1 kB / 424.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01896/0.4251, allocations: 10.34 MB / 434.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008164/0.426, allocations: 1.078 MB / 435.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005558/0.4266, allocations: 91.52 kB / 435.7 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000548/0.4271, allocations: 435.3 kB / 436.1 MB, free: 288 kB / 334.1 MB Notification: Performance of SimCode: time 1.884e-06/0.4272, allocations: 0 / 436.1 MB, free: 288 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05685/0.484, allocations: 23.32 MB / 459.4 MB, free: 9.266 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/0.4843, allocations: 243.1 kB / 459.7 MB, free: 9.012 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.969/3.453, allocations: 0 / 459.7 MB, free: 9.012 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > 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