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.001583/0.001583, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002129/0.002129, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.436/1.436, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.00149/0.00149, allocations: 43.94 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2589, allocations: 53.36 MB / 431.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004457/0.2634, allocations: 2.982 MB / 434.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.2648, allocations: 0.779 MB / 434.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.2649, allocations: 8 kB / 434.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.2651, allocations: 47.52 kB / 435 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.2653, allocations: 103.2 kB / 435.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.2656, allocations: 123.8 kB / 435.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.2661, allocations: 418.4 kB / 435.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.2663, allocations: 83.67 kB / 435.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.2665, allocations: 163.4 kB / 435.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.2667, allocations: 171.3 kB / 436 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.321e-05/0.2668, allocations: 40 kB / 436.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.837e-05/0.2669, allocations: 40 kB / 436.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.922e-05/0.2669, allocations: 83.7 kB / 436.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.2671, allocations: 183.1 kB / 436.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004934/0.2676, allocations: 446.8 kB / 436.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2676, allocations: 0 / 436.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2676, allocations: 0 / 436.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.2676, allocations: 3.938 kB / 436.8 MB, free: 1.191 MB / 334.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.001293/0.2689, allocations: 0.6053 MB / 437.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.269, allocations: 8.031 kB / 437.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.608e-05/0.269, allocations: 58.73 kB / 437.5 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.31e-05/0.2691, allocations: 40.7 kB / 437.5 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.2695, allocations: 261.8 kB / 437.8 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.2696, allocations: 20.88 kB / 437.8 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/0.2696, allocations: 24.38 kB / 437.8 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007254/0.2703, allocations: 326.8 kB / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.2703, allocations: 3.938 kB / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.2704, allocations: 12 kB / 438.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.2704, allocations: 8 kB / 438.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000773/0.2712, allocations: 277.8 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.2731, allocations: 1.104 MB / 439.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008193/0.2739, allocations: 246.5 kB / 439.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003955/0.2743, allocations: 104.8 kB / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.2744, allocations: 0 / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004796/0.2748, allocations: 182.1 kB / 440 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.213e-06/0.2748, allocations: 3.938 kB / 440.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002214/0.277, allocations: 0.5876 MB / 440.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/0.2771, allocations: 106.8 kB / 440.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.2775, allocations: 285.8 kB / 441 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.2775, allocations: 29.7 kB / 441.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.2777, allocations: 208 kB / 441.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.253e-05/0.2777, allocations: 47.62 kB / 441.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.121e-05/0.2778, allocations: 49.94 kB / 441.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.278, allocations: 330.8 kB / 441.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/0.2783, allocations: 108.4 kB / 441.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.2787, allocations: 208.8 kB / 442 MB, free: 11.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007119/0.2794, allocations: 306.6 kB / 442.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2794, allocations: 0 / 442.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001209/0.2806, allocations: 475.7 kB / 442.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.389e-05/0.2807, allocations: 41.69 kB / 442.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2807, allocations: 0 / 442.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003812/0.2811, allocations: 88.86 kB / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.2813, allocations: 51.91 kB / 442.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00269/0.284, allocations: 1.886 MB / 444.8 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.2843, allocations: 51.81 kB / 444.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.2843, allocations: 15.92 kB / 444.9 MB, free: 8.629 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.0001698/0.2845, allocations: 152.3 kB / 445 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.2845, allocations: 23.86 kB / 445.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.465e-05/0.2846, allocations: 33.83 kB / 445.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2846, allocations: 0 / 445.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.2846, allocations: 0 / 445.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2846, allocations: 0 / 445.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003399/0.2849, allocations: 300.4 kB / 445.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2849, allocations: 3.984 kB / 445.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/0.2851, allocations: 23.92 kB / 445.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002748/0.2853, allocations: 92.95 kB / 445.5 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.2853, allocations: 0 / 445.5 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00236/0.2877, allocations: 1.705 MB / 447.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2877, allocations: 0 / 447.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.2888, allocations: 369.6 kB / 447.6 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.465e-05/0.2888, allocations: 27.81 kB / 447.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.2888, allocations: 7.938 kB / 447.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.2891, allocations: 35.95 kB / 447.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.079e-05/0.2891, allocations: 19.97 kB / 447.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.2892, allocations: 8.125 kB / 447.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002125/0.2894, allocations: 201.2 kB / 447.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2894, allocations: 0 / 447.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003697/0.2897, allocations: 75.89 kB / 447.9 MB, free: 5.383 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.001383/0.2911, allocations: 0.9058 MB / 448.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009978/0.2921, allocations: 421.7 kB / 449.2 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2921, allocations: 0.6875 kB / 449.2 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004683/0.2926, allocations: 234.5 kB / 449.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.2929, allocations: 48.47 kB / 449.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005217/0.2982, allocations: 3.112 MB / 452.6 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003979/0.2986, allocations: 0.756 MB / 453.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.2987, allocations: 30.27 kB / 453.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.2988, allocations: 87.34 kB / 453.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2988, allocations: 0 / 453.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0386/0.3374, allocations: 7.105 MB / 460.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.55, allocations: 10.22 kB / 460.6 MB, free: 8.625 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.032392667999375]