Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 127.4 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 51.91 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1119, allocations: 53.33 MB / 426.4 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.005357/0.1173, allocations: 2.954 MB / 429.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.1191, allocations: 0.7557 MB / 430.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003232/0.1194, allocations: 11.94 kB / 430.1 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000239/0.1196, allocations: 51.5 kB / 430.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003616/0.12, allocations: 103.2 kB / 430.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.1204, allocations: 119.8 kB / 430.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006363/0.1211, allocations: 418.4 kB / 430.8 MB, free: 328 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.1213, allocations: 87.27 kB / 430.8 MB, free: 232 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002892/0.1216, allocations: 163.4 kB / 431 MB, free: 68 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2155/0.3371, allocations: 170.1 kB / 431.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.3373, allocations: 37.47 kB / 431.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.3374, allocations: 41.09 kB / 431.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.829e-05/0.3375, allocations: 78.88 kB / 431.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.3377, allocations: 178.3 kB / 431.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005148/0.3382, allocations: 453.6 kB / 431.9 MB, free: 7.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3382, allocations: 0.5625 kB / 431.9 MB, free: 7.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3382, allocations: 2.375 kB / 431.9 MB, free: 7.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.3382, allocations: 3.938 kB / 431.9 MB, free: 7.809 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001204/0.3394, allocations: 0.6823 MB / 432.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3394, allocations: 11.03 kB / 432.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.002e-05/0.3395, allocations: 64.56 kB / 432.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.089e-05/0.3396, allocations: 37.39 kB / 432.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.3399, allocations: 302.3 kB / 433 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.3399, allocations: 17.72 kB / 433 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.101e-05/0.34, allocations: 24.66 kB / 433.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006795/0.3407, allocations: 332.5 kB / 433.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.3407, allocations: 0.5312 kB / 433.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.3407, allocations: 10.84 kB / 433.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.3407, allocations: 6.031 kB / 433.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007565/0.3415, allocations: 287.5 kB / 433.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.3432, allocations: 1.147 MB / 434.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008422/0.344, allocations: 240.5 kB / 435.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.3444, allocations: 104.5 kB / 435.2 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.3444, allocations: 2.125 kB / 435.2 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/0.3449, allocations: 182.3 kB / 435.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.3449, allocations: 3.938 kB / 435.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002388/0.3472, allocations: 0.6669 MB / 436 MB, free: 6.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.3473, allocations: 105.9 kB / 436.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.3476, allocations: 282.8 kB / 436.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.3476, allocations: 28.67 kB / 436.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.3477, allocations: 203.1 kB / 436.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.3477, allocations: 43.73 kB / 436.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-05/0.3478, allocations: 52.16 kB / 436.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.977e-05/0.3479, allocations: 333.7 kB / 437.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003565/0.3482, allocations: 110.2 kB / 437.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003796/0.3486, allocations: 201.1 kB / 437.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006922/0.3493, allocations: 310.2 kB / 437.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3493, allocations: 1.406 kB / 437.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001261/0.3506, allocations: 481.5 kB / 438.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/0.3506, allocations: 34.86 kB / 438.2 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.3506, allocations: 2.031 kB / 438.2 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003884/0.351, allocations: 87.06 kB / 438.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.3512, allocations: 46.91 kB / 438.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002349/0.3536, allocations: 1.998 MB / 440.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003726/0.354, allocations: 57.28 kB / 440.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.354, allocations: 14.42 kB / 440.4 MB, free: 3.445 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001544/0.3541, allocations: 152.7 kB / 440.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.3542, allocations: 23.98 kB / 440.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.295e-05/0.3542, allocations: 27.45 kB / 440.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3542, allocations: 1.703 kB / 440.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3542, allocations: 1.125 kB / 440.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3542, allocations: 0.6562 kB / 440.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002967/0.3545, allocations: 333.4 kB / 440.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3545, allocations: 0.8438 kB / 440.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.3547, allocations: 22.39 kB / 440.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002897/0.355, allocations: 80.8 kB / 441 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.355, allocations: 7.609 kB / 441 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002097/0.3571, allocations: 1.809 MB / 442.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3571, allocations: 5.469 kB / 442.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.3582, allocations: 363.9 kB / 443.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.457e-05/0.3583, allocations: 109.3 kB / 443.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.764e-05/0.3584, allocations: 11.14 kB / 443.3 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.3586, allocations: 33.48 kB / 443.3 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-05/0.3587, allocations: 18.78 kB / 443.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.3587, allocations: 3.953 kB / 443.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002168/0.3589, allocations: 205.6 kB / 443.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3589, allocations: 0 / 443.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004773/0.3594, allocations: 76.45 kB / 443.6 MB, free: 1.062 MB / 350.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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001446/0.3608, allocations: 0.9066 MB / 444.5 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.3618, allocations: 423.9 kB / 444.9 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3618, allocations: 5.406 kB / 444.9 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004483/0.3623, allocations: 228.9 kB / 445.2 MB, free: 4 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.3627, allocations: 46.62 kB / 445.2 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/0.3686, allocations: 3.115 MB / 448.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.369, allocations: 0.7545 MB / 449.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.3691, allocations: 27.61 kB / 449.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3693, allocations: 90.53 kB / 449.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3693, allocations: 0 / 449.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04039/0.4096, allocations: 6.932 MB / 456.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.81, allocations: 8.516 kB / 456.1 MB, free: 11.48 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! Error: Could not read variable gain.opAmp.out.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.366028328993707]