Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008463/0.0008463, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007845/0.0007845, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9115/0.9115, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.235e-05/2.378e-05, allocations: 2.844 kB / 324.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003041/0.003065, allocations: 2.775 MB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.004089, allocations: 0.7167 MB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.004221, allocations: 7.938 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.004357, allocations: 47.5 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001534/0.00451, allocations: 115 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.004757, allocations: 103.8 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003227/0.005079, allocations: 434 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.005242, allocations: 83.67 kB / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.005425, allocations: 227.5 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.005552, allocations: 127.6 kB / 329.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.005593, allocations: 40 kB / 329.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.23e-05/0.005625, allocations: 44 kB / 329.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.445e-05/0.00568, allocations: 87.66 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.346e-05/0.005773, allocations: 127.7 kB / 329.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005352/0.006308, allocations: 474.5 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.006311, allocations: 0 / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006312, allocations: 4 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.006318, allocations: 0 / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007718/0.007089, allocations: 0.6014 MB / 330.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.007128, allocations: 15.98 kB / 330.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.707e-05/0.007175, allocations: 62.73 kB / 330.6 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.979e-05/0.007225, allocations: 32.75 kB / 330.6 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.007518, allocations: 245.2 kB / 330.9 MB, free: 9.438 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.007537, allocations: 24.97 kB / 330.9 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.007562, allocations: 24.38 kB / 330.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.007967, allocations: 359.7 kB / 331.3 MB, free: 9.012 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.007978, allocations: 192 / 331.3 MB, free: 9.012 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.008002, allocations: 24.11 kB / 331.3 MB, free: 8.988 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.008011, allocations: 11.98 kB / 331.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004327/0.008444, allocations: 254.5 kB / 331.6 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.009538, allocations: 0.9757 MB / 332.5 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003751/0.009914, allocations: 214.6 kB / 332.8 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.01005, allocations: 88.8 kB / 332.8 MB, free: 7.367 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.01007, allocations: 0 / 332.8 MB, free: 7.367 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.01034, allocations: 266.7 kB / 333.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.032e-06/0.01034, allocations: 0 / 333.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0008954/0.01123, allocations: 446.2 kB / 333.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.01129, allocations: 128.5 kB / 333.7 MB, free: 6.465 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.01148, allocations: 289.8 kB / 333.9 MB, free: 6.172 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.0115, allocations: 41.64 kB / 334 MB, free: 6.125 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.01159, allocations: 200 kB / 334.2 MB, free: 5.926 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.01162, allocations: 51.59 kB / 334.2 MB, free: 5.875 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-05/0.01168, allocations: 57.66 kB / 334.3 MB, free: 5.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.905e-05/0.01176, allocations: 334.8 kB / 334.6 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.01192, allocations: 125.6 kB / 334.7 MB, free: 5.348 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.01214, allocations: 294.8 kB / 335 MB, free: 4.992 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00031/0.01245, allocations: 286.9 kB / 335.3 MB, free: 4.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.01245, allocations: 3.938 kB / 335.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005273/0.01298, allocations: 444.8 kB / 335.7 MB, free: 4.215 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.01301, allocations: 33.7 kB / 335.8 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.01301, allocations: 0 / 335.8 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002096/0.01322, allocations: 80.78 kB / 335.9 MB, free: 4.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.01332, allocations: 47.94 kB / 335.9 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.0148, allocations: 1.683 MB / 337.6 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.01495, allocations: 51.75 kB / 337.6 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.01497, allocations: 15.98 kB / 337.7 MB, free: 2.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (gain.opAmp.satNeg,gain.opAmp.satPos,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 (24): * Single equations (assignments): 22 * 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.0001022/0.01507, allocations: 157.8 kB / 337.8 MB, free: 2.016 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.211e-05/0.01509, allocations: 27.92 kB / 337.8 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.736e-05/0.01512, allocations: 30.3 kB / 337.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.01512, allocations: 0 / 337.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.01512, allocations: 4 kB / 337.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.01512, allocations: 0 / 337.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.0153, allocations: 268.5 kB / 338.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.0153, allocations: 0 / 338.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.027e-05/0.01536, allocations: 27.91 kB / 338.2 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001592/0.01552, allocations: 80.78 kB / 338.2 MB, free: 1.543 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.01553, allocations: 0 / 338.2 MB, free: 1.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.01661, allocations: 1.68 MB / 339.9 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01661, allocations: 7.969 kB / 339.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004154/0.01703, allocations: 312.4 kB / 340.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.01706, allocations: 35.73 kB / 340.3 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.01708, allocations: 192 / 340.3 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.01718, allocations: 35.97 kB / 340.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.519e-05/0.01725, allocations: 31.89 kB / 340.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.01726, allocations: 4 kB / 340.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.01738, allocations: 197.2 kB / 340.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01738, allocations: 3.938 kB / 340.5 MB, free: 15.1 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002353/0.01762, allocations: 87.89 kB / 340.6 MB, free: 15.02 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count,gain.opAmp.satPos,gain.opAmp.satNeg) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * 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.0006054/0.01823, allocations: 0.8472 MB / 341.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005318/0.01876, allocations: 447.4 kB / 341.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01876, allocations: 0 / 341.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002354/0.01899, allocations: 247 kB / 342.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.01921, allocations: 48.55 kB / 342.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003478/0.02269, allocations: 3.209 MB / 345.4 MB, free: 9.969 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.796e-05/0.02279, allocations: 151.8 kB / 345.5 MB, free: 9.801 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.173e-05/0.02287, allocations: 26.28 kB / 345.6 MB, free: 9.773 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.72e-05/0.02297, allocations: 88.47 kB / 345.7 MB, free: 9.688 MB / 314.7 MB Notification: Performance of SimCode: time 1.193e-06/0.02297, allocations: 0 / 345.7 MB, free: 9.688 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.04568, allocations: 8.065 MB / 353.7 MB, free: 1.785 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/7.713, allocations: 12.05 kB / 353.7 MB, free: 1.773 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_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_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gain.opAmp.out.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! Error: Could not read variable gain.opAmp.out.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.461382574401796]