Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001688/0.001688, allocations: 105.5 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.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.002185/0.002185, allocations: 188.3 kB / 23.72 MB, free: 4.719 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.4/1.4, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 43.92 kB / 370.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2489, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004895/0.2538, allocations: 2.814 MB / 425.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.2555, allocations: 0.6465 MB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/0.2558, allocations: 7.938 kB / 426.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.256, allocations: 43.52 kB / 426.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.2563, allocations: 99.19 kB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.2566, allocations: 91.88 kB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005974/0.2572, allocations: 370.5 kB / 426.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.2575, allocations: 87.36 kB / 426.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.2577, allocations: 155.4 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.258, allocations: 167.3 kB / 427.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.75e-05/0.2581, allocations: 40 kB / 427.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.117e-05/0.2582, allocations: 32 kB / 427.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.479e-05/0.2583, allocations: 79.69 kB / 427.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.2585, allocations: 159.3 kB / 427.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004448/0.2589, allocations: 374.9 kB / 427.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.2589, allocations: 4 kB / 427.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2589, allocations: 0 / 427.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.2589, allocations: 0 / 427.8 MB, free: 9.43 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001406/0.2603, allocations: 0.5935 MB / 428.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.2604, allocations: 11.97 kB / 428.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.048e-05/0.2605, allocations: 58.73 kB / 428.4 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.548e-05/0.2605, allocations: 32.75 kB / 428.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00041/0.2609, allocations: 219 kB / 428.7 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.261, allocations: 20.86 kB / 428.7 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.261, allocations: 24.38 kB / 428.7 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000677/0.2617, allocations: 302.6 kB / 429 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.2617, allocations: 3.984 kB / 429 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.2617, allocations: 12 kB / 429 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2618, allocations: 12 kB / 429.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007601/0.2625, allocations: 245.6 kB / 429.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.2643, allocations: 1.047 MB / 430.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007532/0.265, allocations: 206.6 kB / 430.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.2653, allocations: 84.78 kB / 430.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.2654, allocations: 0 / 430.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000451/0.2658, allocations: 169.8 kB / 430.8 MB, free: 6.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.2658, allocations: 0 / 430.8 MB, free: 6.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001992/0.2678, allocations: 445.8 kB / 431.2 MB, free: 5.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/0.2679, allocations: 110.8 kB / 431.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003051/0.2682, allocations: 281.8 kB / 431.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.2682, allocations: 29.7 kB / 431.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.2684, allocations: 207.9 kB / 431.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.036e-05/0.2684, allocations: 43.67 kB / 431.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.04e-05/0.2685, allocations: 49.89 kB / 431.9 MB, free: 5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.2686, allocations: 338.8 kB / 432.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.269, allocations: 96.16 kB / 432.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003974/0.2694, allocations: 199.3 kB / 432.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006893/0.2701, allocations: 309.4 kB / 432.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2701, allocations: 0 / 432.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001178/0.2712, allocations: 427.7 kB / 433.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.484e-05/0.2713, allocations: 41.69 kB / 433.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.2713, allocations: 7.938 kB / 433.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003276/0.2716, allocations: 68.91 kB / 433.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.2718, allocations: 51.89 kB / 433.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002341/0.2742, allocations: 1.603 MB / 435 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.2745, allocations: 47.81 kB / 435.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.2745, allocations: 16.17 kB / 435.1 MB, free: 1.586 MB / 334.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.0001572/0.2747, allocations: 153.5 kB / 435.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.759e-05/0.2747, allocations: 23.84 kB / 435.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.268e-05/0.2748, allocations: 33.7 kB / 435.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.2748, allocations: 4 kB / 435.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2748, allocations: 4 kB / 435.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2748, allocations: 0 / 435.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002852/0.2751, allocations: 272.5 kB / 435.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2751, allocations: 0 / 435.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.2752, allocations: 15.98 kB / 435.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002574/0.2754, allocations: 72.8 kB / 435.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.2755, allocations: 0 / 435.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/0.2776, allocations: 1.601 MB / 437.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2776, allocations: 192 / 437.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009745/0.2786, allocations: 317.5 kB / 437.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.349e-05/0.2787, allocations: 35.83 kB / 437.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.35e-05/0.2788, allocations: 12 kB / 437.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.279, allocations: 23.97 kB / 437.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.802e-05/0.2791, allocations: 35.89 kB / 437.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.2791, allocations: 3.938 kB / 437.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.2793, allocations: 201.2 kB / 437.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2793, allocations: 0 / 437.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000343/0.2796, allocations: 79.89 kB / 438 MB, free: 14.54 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 (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.001329/0.281, allocations: 0.8549 MB / 438.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009653/0.2819, allocations: 406.1 kB / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2819, allocations: 0 / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004471/0.2824, allocations: 223.2 kB / 439.4 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.2827, allocations: 45.27 kB / 439.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005263/0.2879, allocations: 2.991 MB / 442.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.2883, allocations: 0.7518 MB / 443.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.2884, allocations: 30.27 kB / 443.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.2886, allocations: 79.42 kB / 443.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2886, allocations: 0 / 443.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05266/0.3412, allocations: 7.023 MB / 450.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/12.89, allocations: 7.188 kB / 450.4 MB, free: 2.039 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.212921282975003]