Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001541/0.001541, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001959/0.001959, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 64.17 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08635/0.08754, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004028/0.0916, allocations: 2.798 MB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.09287, allocations: 0.6817 MB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.09305, allocations: 7.938 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.09324, allocations: 43.56 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.09345, allocations: 91.2 kB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.09373, allocations: 91.81 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.09413, allocations: 374.5 kB / 361.7 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.09436, allocations: 126.9 kB / 361.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.09454, allocations: 143.5 kB / 361.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.09475, allocations: 163.3 kB / 362.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.944e-05/0.09481, allocations: 36 kB / 362.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.11e-05/0.09488, allocations: 32 kB / 362.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.28e-05/0.09496, allocations: 75.73 kB / 362.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.09514, allocations: 163.2 kB / 362.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.09549, allocations: 374.9 kB / 362.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.09551, allocations: 0 / 362.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09551, allocations: 0 / 362.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.09553, allocations: 4 kB / 362.8 MB, free: 8.793 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001241/0.09678, allocations: 0.6536 MB / 363.4 MB, free: 8.082 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.09682, allocations: 8.031 kB / 363.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.695e-05/0.09689, allocations: 62.72 kB / 363.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.47e-05/0.09697, allocations: 32.56 kB / 363.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.09727, allocations: 276.6 kB / 363.8 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.0973, allocations: 16.94 kB / 363.8 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.84e-05/0.09734, allocations: 24.38 kB / 363.8 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006698/0.09802, allocations: 307.5 kB / 364.1 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.09804, allocations: 0 / 364.1 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.09808, allocations: 12 kB / 364.1 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.0981, allocations: 4 kB / 364.1 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000822/0.09893, allocations: 261.5 kB / 364.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.1006, allocations: 1.085 MB / 365.5 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008073/0.1014, allocations: 210.5 kB / 365.7 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003258/0.1018, allocations: 92.72 kB / 365.8 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.1018, allocations: 4 kB / 365.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004849/0.1023, allocations: 169.9 kB / 365.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.773e-06/0.1023, allocations: 0 / 365.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002192/0.1045, allocations: 0.5144 MB / 366.5 MB, free: 4.812 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.1046, allocations: 106.8 kB / 366.6 MB, free: 4.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.1049, allocations: 290.5 kB / 366.8 MB, free: 4.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.1049, allocations: 25.7 kB / 366.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.105, allocations: 199.5 kB / 367.1 MB, free: 4.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.1051, allocations: 39.48 kB / 367.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.747e-05/0.1052, allocations: 61.84 kB / 367.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1053, allocations: 330.8 kB / 367.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.1056, allocations: 92.16 kB / 367.6 MB, free: 3.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004027/0.1061, allocations: 202.4 kB / 367.8 MB, free: 3.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007293/0.1068, allocations: 309.4 kB / 368.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1068, allocations: 0 / 368.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00129/0.1081, allocations: 423.7 kB / 368.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.1082, allocations: 37.69 kB / 368.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1082, allocations: 3.938 kB / 368.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003398/0.1085, allocations: 72.91 kB / 368.6 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000222/0.1087, allocations: 51.89 kB / 368.7 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.1111, allocations: 1.704 MB / 370.4 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.1115, allocations: 63.61 kB / 370.4 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.1115, allocations: 8 kB / 370.4 MB, free: 0.5195 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000145/0.1117, allocations: 153.3 kB / 370.6 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.023e-05/0.1117, allocations: 23.81 kB / 370.6 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.938e-05/0.1118, allocations: 21.7 kB / 370.6 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1118, allocations: 4 kB / 370.6 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1118, allocations: 0 / 370.6 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1118, allocations: 7.922 kB / 370.6 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1488/0.2606, allocations: 305.4 kB / 370.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2607, allocations: 3.828 kB / 370.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.2609, allocations: 18 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003402/0.2612, allocations: 67.38 kB / 371 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.2613, allocations: 3.688 kB / 371 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002154/0.2634, allocations: 1.702 MB / 372.7 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.2634, allocations: 1.266 kB / 372.7 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.2645, allocations: 306.8 kB / 373 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.2647, allocations: 110.4 kB / 373.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.2647, allocations: 10.59 kB / 373.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.265, allocations: 36.14 kB / 373.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9e-05/0.2651, allocations: 21.83 kB / 373.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.2651, allocations: 3.391 kB / 373.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.2653, allocations: 201.8 kB / 373.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2653, allocations: 1.484 kB / 373.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.2657, allocations: 77.27 kB / 373.5 MB, free: 18.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001241/0.267, allocations: 0.8504 MB / 374.3 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.268, allocations: 419.7 kB / 374.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.268, allocations: 0 / 374.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004425/0.2685, allocations: 227.7 kB / 375 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.2688, allocations: 43.47 kB / 375 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004838/0.2736, allocations: 3.013 MB / 378 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.2738, allocations: 0.753 MB / 378.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.274, allocations: 30.08 kB / 378.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2741, allocations: 74.52 kB / 378.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2741, allocations: 4 kB / 378.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.3022, allocations: 6.71 MB / 385.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.74, allocations: 4.531 kB / 385.6 MB, free: 13.71 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches