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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001416/0.001416, allocations: 114.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001554/0.001554, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.4 MB, free: 9.078 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 67.08 kB / 306.6 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09564, allocations: 50.52 MB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.009369/0.105, allocations: 7.857 MB / 365 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004128/0.1092, allocations: 1.893 MB / 366.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.1105, allocations: 27.94 kB / 366.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008539/0.1114, allocations: 170.6 kB / 367 MB, free: 4.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001506/0.1129, allocations: 381.1 kB / 367.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001125/0.114, allocations: 443.6 kB / 367.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002396/0.1164, allocations: 1.802 MB / 369.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009961/0.1175, allocations: 0.6091 MB / 370.3 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009303/0.1184, allocations: 0.6306 MB / 370.9 MB, free: 200 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1895/0.3079, allocations: 0.7195 MB / 371.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005871/0.3086, allocations: 177.3 kB / 371.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004314/0.309, allocations: 179.3 kB / 372 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002798/0.3093, allocations: 357.2 kB / 372.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009602/0.3103, allocations: 0.7762 MB / 373.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002872/0.3132, allocations: 2.028 MB / 375.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3132, allocations: 1.172 kB / 375.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3132, allocations: 0 / 375.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.523e-05/0.3133, allocations: 0.875 kB / 375.1 MB, free: 10.41 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.00466/0.3179, allocations: 1.782 MB / 376.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.318, allocations: 9.625 kB / 376.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002664/0.3183, allocations: 186.4 kB / 377.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003507/0.3186, allocations: 157.4 kB / 377.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.3198, allocations: 0.7321 MB / 378 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.362e-05/0.3199, allocations: 92.58 kB / 378.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001811/0.3201, allocations: 126.2 kB / 378.2 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002736/0.3228, allocations: 1.311 MB / 379.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.3228, allocations: 0 / 379.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.323, allocations: 52.31 kB / 379.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.035e-05/0.323, allocations: 31.56 kB / 379.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002746/0.3258, allocations: 1.12 MB / 380.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009053/0.3349, allocations: 4.996 MB / 385.7 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.3375, allocations: 1.209 MB / 386.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.3388, allocations: 0.5205 MB / 387.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.015e-05/0.3389, allocations: 10.22 kB / 387.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.3389, allocations: 53.94 kB / 387.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 3.046e-06/0.3389, allocations: 0 / 387.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.009266/0.3482, allocations: 2.936 MB / 390.4 MB, free: 3.062 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.3483, allocations: 85.17 kB / 390.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001735/0.3501, allocations: 0.8075 MB / 391.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00015/0.3502, allocations: 41.45 kB / 391.4 MB, free: 2.465 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000423/0.3507, allocations: 0.5943 MB / 391.9 MB, free: 1.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002724/0.3509, allocations: 277.4 kB / 392.2 MB, free: 1.703 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003596/0.3513, allocations: 174 kB / 392.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.604e-05/0.3514, allocations: 346.5 kB / 392.7 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000919/0.3523, allocations: 366.6 kB / 393.1 MB, free: 1.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009653/0.3533, allocations: 0.5782 MB / 393.7 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001843/0.3552, allocations: 0.9469 MB / 394.6 MB, free: 68 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.3552, allocations: 1.062 kB / 394.6 MB, free: 68 kB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003482/0.3587, allocations: 1.354 MB / 396 MB, free: 15.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.3587, allocations: 11.78 kB / 396 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.3587, allocations: 9.031 kB / 396 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008766/0.3596, allocations: 233.9 kB / 396.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00348/0.3631, allocations: 0.8269 MB / 397 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/0.3772, allocations: 10.86 MB / 407.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.3784, allocations: 142.9 kB / 408 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.3786, allocations: 39.98 kB / 408.1 MB, free: 4.906 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.0006995/0.3793, allocations: 269 kB / 408.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003219/0.3796, allocations: 102.9 kB / 408.4 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002696/0.3799, allocations: 111.5 kB / 408.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.3799, allocations: 8 kB / 408.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.3799, allocations: 3.938 kB / 408.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.38, allocations: 3.984 kB / 408.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005848/0.3858, allocations: 2.454 MB / 411 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.3858, allocations: 0 / 411 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/0.3864, allocations: 117.7 kB / 411.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0014/0.3878, allocations: 434.7 kB / 411.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/0.3879, allocations: 16.81 kB / 411.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/0.4007, allocations: 10.9 MB / 422.5 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4007, allocations: 12.03 kB / 422.5 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004926/0.4057, allocations: 1.939 MB / 424.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000469/0.4062, allocations: 183.8 kB / 424.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/0.4064, allocations: 16 kB / 424.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009317/0.4074, allocations: 99.92 kB / 424.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.4076, allocations: 71.69 kB / 424.8 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.774e-05/0.4077, allocations: 24 kB / 424.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008392/0.4085, allocations: 0.5498 MB / 425.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4085, allocations: 0 / 425.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001627/0.4101, allocations: 359 kB / 425.7 MB, free: 2.395 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.005169/0.4153, allocations: 2.512 MB / 428.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006195/0.4215, allocations: 2.012 MB / 430.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.4216, allocations: 0 / 430.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.4235, allocations: 1.165 MB / 431.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/0.4252, allocations: 211.9 kB / 431.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02082/0.4461, allocations: 10.35 MB / 442 MB, free: 1.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009279/0.447, allocations: 1.078 MB / 443 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006133/0.4477, allocations: 103.5 kB / 443.1 MB, free: 488 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/0.4482, allocations: 431.3 kB / 443.6 MB, free: 56 kB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4482, allocations: 0 / 443.6 MB, free: 56 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07052/0.5188, allocations: 23.31 MB / 466.9 MB, free: 9.094 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000327/0.5191, allocations: 249.9 kB / 467.1 MB, free: 8.836 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.64/3.16, allocations: 2.875 kB / 467.1 MB, free: 8.836 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > 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