Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001336/0.001336, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001458/0.001458, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 51.92 kB / 347.2 MB, free: 10.1 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2608, allocations: 49.16 MB / 396.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.00336/0.2642, allocations: 2.77 MB / 399.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.2652, allocations: 0.6949 MB / 399.8 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.2653, allocations: 11.81 kB / 399.8 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.2655, allocations: 47.3 kB / 399.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.2656, allocations: 87.53 kB / 400 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.2659, allocations: 85.28 kB / 400.1 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.2663, allocations: 385.7 kB / 400.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.2664, allocations: 99.59 kB / 400.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.2666, allocations: 148.5 kB / 400.7 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.2668, allocations: 166.3 kB / 400.8 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-05/0.2669, allocations: 34.5 kB / 400.9 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.846e-05/0.2669, allocations: 33.94 kB / 400.9 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.343e-05/0.267, allocations: 73.7 kB / 401 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.2671, allocations: 162.4 kB / 401.1 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003915/0.2675, allocations: 377.7 kB / 401.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2675, allocations: 1.125 kB / 401.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2675, allocations: 0 / 401.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.2675, allocations: 0 / 401.5 MB, free: 5.676 MB / 318.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.001151/0.2687, allocations: 0.5849 MB / 402.1 MB, free: 5.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2687, allocations: 10.12 kB / 402.1 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.984e-05/0.2688, allocations: 65.19 kB / 402.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.2688, allocations: 37.55 kB / 402.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.2691, allocations: 211.8 kB / 402.4 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.2691, allocations: 22.59 kB / 402.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.116e-05/0.2692, allocations: 25.72 kB / 402.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006197/0.2698, allocations: 310.2 kB / 402.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.2698, allocations: 0 / 402.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.2698, allocations: 10.78 kB / 402.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.2698, allocations: 10.06 kB / 402.8 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007623/0.2706, allocations: 247.1 kB / 403 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.2721, allocations: 1.052 MB / 404.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/0.2728, allocations: 208 kB / 404.3 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/0.2731, allocations: 84.81 kB / 404.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.2731, allocations: 3.234 kB / 404.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004105/0.2735, allocations: 171.7 kB / 404.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.362e-06/0.2735, allocations: 1.25 kB / 404.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.001946/0.2754, allocations: 445.6 kB / 405 MB, free: 3.609 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.2755, allocations: 114.2 kB / 405.1 MB, free: 3.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.2757, allocations: 280 kB / 405.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.2758, allocations: 32.27 kB / 405.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.57e-05/0.2759, allocations: 198.4 kB / 405.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.113e-05/0.2759, allocations: 45.02 kB / 405.6 MB, free: 3.082 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/0.276, allocations: 57.14 kB / 405.7 MB, free: 3.043 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.679e-05/0.276, allocations: 331.6 kB / 406 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003137/0.2763, allocations: 93.02 kB / 406.1 MB, free: 2.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.2767, allocations: 198.7 kB / 406.3 MB, free: 2.539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005937/0.2773, allocations: 310.9 kB / 406.6 MB, free: 2.316 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2773, allocations: 1.438 kB / 406.6 MB, free: 2.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001157/0.2784, allocations: 420.6 kB / 407 MB, free: 2.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.2785, allocations: 34.64 kB / 407 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2785, allocations: 7.469 kB / 407 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003449/0.2788, allocations: 80.78 kB / 407.1 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/0.279, allocations: 46.39 kB / 407.2 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.281, allocations: 1.609 MB / 408.8 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003582/0.2813, allocations: 57.62 kB / 408.8 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.2814, allocations: 14.19 kB / 408.8 MB, free: 0.6367 MB / 318.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.0001216/0.2815, allocations: 150 kB / 409 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.2815, allocations: 22.86 kB / 409 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.331e-05/0.2816, allocations: 24.16 kB / 409 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2816, allocations: 1.984 kB / 409 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.2816, allocations: 0 / 409 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2816, allocations: 2.031 kB / 409 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.2818, allocations: 275.3 kB / 409.3 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2818, allocations: 0 / 409.3 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.282, allocations: 23.31 kB / 409.3 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002396/0.2822, allocations: 62.55 kB / 409.4 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.2822, allocations: 6.359 kB / 409.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002255/0.2845, allocations: 1.606 MB / 411 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2845, allocations: 1.219 kB / 411 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.2855, allocations: 309.9 kB / 411.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.2856, allocations: 38 kB / 411.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.387e-05/0.2856, allocations: 7.609 kB / 411.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.2859, allocations: 28.28 kB / 411.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.811e-05/0.286, allocations: 28.42 kB / 411.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.286, allocations: 7.344 kB / 411.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002284/0.2862, allocations: 200.5 kB / 411.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2862, allocations: 1.562 kB / 411.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.2866, allocations: 82.66 kB / 411.7 MB, free: 14.51 MB / 334.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.001371/0.288, allocations: 0.8481 MB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009814/0.2889, allocations: 396.9 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2889, allocations: 1.25 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004567/0.2894, allocations: 223.3 kB / 413.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.2897, allocations: 38.33 kB / 413.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005355/0.2951, allocations: 3.009 MB / 416.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.2955, allocations: 0.7578 MB / 416.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.2956, allocations: 30.17 kB / 417 MB, free: 10.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.2957, allocations: 71.39 kB / 417 MB, free: 10.25 MB / 334.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2957, allocations: 0 / 417 MB, free: 10.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03851/0.3342, allocations: 7.028 MB / 424.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.16, allocations: 5.375 kB / 424.1 MB, free: 6.531 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable vIn.signalSource.y in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv. Warning: Get data of variable vIn.signalSource.y from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.658398654006305]