Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 191.9 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 55.91 kB / 370.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2773, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004437/0.2818, allocations: 2.735 MB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.2831, allocations: 0.7012 MB / 426 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2832, allocations: 11.94 kB / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.2834, allocations: 43.52 kB / 426.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002217/0.2836, allocations: 111.2 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002946/0.2839, allocations: 107.8 kB / 426.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.2844, allocations: 426.4 kB / 426.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.2846, allocations: 81.38 kB / 426.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.2848, allocations: 163.4 kB / 427 MB, free: 10 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002105/0.285, allocations: 151.3 kB / 427.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.508e-05/0.2851, allocations: 40 kB / 427.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.855e-05/0.2851, allocations: 40 kB / 427.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.486e-05/0.2852, allocations: 79.7 kB / 427.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.2854, allocations: 147.3 kB / 427.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004925/0.2859, allocations: 462.2 kB / 427.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2859, allocations: 0 / 427.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2859, allocations: 0 / 427.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.2859, allocations: 0 / 427.9 MB, free: 9.098 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.001302/0.2872, allocations: 0.6053 MB / 428.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.2872, allocations: 8.031 kB / 428.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.639e-05/0.2873, allocations: 62.72 kB / 428.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.889e-05/0.2874, allocations: 36.75 kB / 428.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.2878, allocations: 249.8 kB / 428.8 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.2879, allocations: 20.88 kB / 428.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.2879, allocations: 24.38 kB / 428.9 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007513/0.2887, allocations: 378.2 kB / 429.2 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.2887, allocations: 3.938 kB / 429.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.2887, allocations: 8 kB / 429.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2887, allocations: 12 kB / 429.3 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008036/0.2895, allocations: 289.7 kB / 429.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.2914, allocations: 1.026 MB / 430.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008292/0.2922, allocations: 242.5 kB / 430.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.2926, allocations: 100.8 kB / 430.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.2926, allocations: 0 / 430.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000509/0.2931, allocations: 241.2 kB / 431.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.352e-06/0.2931, allocations: 0 / 431.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002268/0.2954, allocations: 0.5833 MB / 431.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.2955, allocations: 110.8 kB / 431.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/0.2958, allocations: 285.8 kB / 432.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.483e-05/0.2958, allocations: 29.7 kB / 432.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.296, allocations: 204 kB / 432.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.683e-05/0.296, allocations: 43.64 kB / 432.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.109e-05/0.2961, allocations: 49.94 kB / 432.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.2963, allocations: 330.8 kB / 432.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/0.2966, allocations: 138.1 kB / 432.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004655/0.2971, allocations: 283.4 kB / 433.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007251/0.2978, allocations: 310.5 kB / 433.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2978, allocations: 0 / 433.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001284/0.2991, allocations: 0.5013 MB / 434 MB, free: 2.582 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/0.2991, allocations: 37.92 kB / 434 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.2992, allocations: 4 kB / 434 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003696/0.2995, allocations: 88.73 kB / 434.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.2997, allocations: 47.91 kB / 434.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002674/0.3024, allocations: 1.871 MB / 436 MB, free: 424 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.3028, allocations: 63.8 kB / 436.1 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.3028, allocations: 15.88 kB / 436.1 MB, free: 344 kB / 334.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.0001712/0.3029, allocations: 149.8 kB / 436.2 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.377e-05/0.303, allocations: 23.86 kB / 436.3 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.565e-05/0.3031, allocations: 29.77 kB / 436.3 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3031, allocations: 0 / 436.3 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.3031, allocations: 0 / 436.3 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3031, allocations: 0 / 436.3 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003001/0.3034, allocations: 268.5 kB / 436.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3034, allocations: 0 / 436.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.3035, allocations: 23.97 kB / 436.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002739/0.3038, allocations: 80.8 kB / 436.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.3038, allocations: 4 kB / 436.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.3061, allocations: 1.691 MB / 438.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.3061, allocations: 3.984 kB / 438.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.3072, allocations: 369.5 kB / 438.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.461e-05/0.3072, allocations: 35.78 kB / 438.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/0.3073, allocations: 0 / 438.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.3075, allocations: 35.95 kB / 438.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.854e-05/0.3076, allocations: 19.97 kB / 438.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.3076, allocations: 7.938 kB / 438.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002136/0.3078, allocations: 209.1 kB / 439 MB, free: 13.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3078, allocations: 0 / 439 MB, free: 13.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003837/0.3082, allocations: 75.89 kB / 439.1 MB, free: 13.14 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.001432/0.3096, allocations: 0.8941 MB / 440 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.3107, allocations: 463.4 kB / 440.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3107, allocations: 0.6875 kB / 440.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004896/0.3112, allocations: 232.6 kB / 440.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.3115, allocations: 55.73 kB / 440.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005595/0.3171, allocations: 3.218 MB / 443.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.3173, allocations: 150.9 kB / 444.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.3175, allocations: 26.28 kB / 444.1 MB, free: 7.848 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.3176, allocations: 83.41 kB / 444.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3176, allocations: 4 kB / 444.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04144/0.359, allocations: 7.526 MB / 451.7 MB, free: 436 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.83, allocations: 7.312 kB / 451.7 MB, free: 432 kB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! Error: Could not read variable gain.opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv. Warning: Get data of variable gain.opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.191146008204669]