Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001271/0.001271, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001956/0.001956, allocations: 210.4 kB / 23.73 MB, free: 4.523 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.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 47.92 kB / 377.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2518, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004219/0.256, allocations: 2.63 MB / 433.7 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.2572, allocations: 0.6505 MB / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.2574, allocations: 4 kB / 434.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.2575, allocations: 51.5 kB / 434.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.2577, allocations: 91.19 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.258, allocations: 87.89 kB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00045/0.2585, allocations: 374.5 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.2587, allocations: 91.34 kB / 435.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.2589, allocations: 151.4 kB / 435.2 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002392/0.2591, allocations: 171.3 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.536e-05/0.2592, allocations: 32 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.57e-05/0.2592, allocations: 36 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.624e-05/0.2593, allocations: 75.69 kB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.2595, allocations: 135.4 kB / 435.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.2599, allocations: 374.9 kB / 436 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2599, allocations: 0 / 436 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2599, allocations: 4 kB / 436 MB, free: 1.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.2599, allocations: 0 / 436 MB, free: 1.707 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.00131/0.2612, allocations: 0.5896 MB / 436.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.2613, allocations: 15.97 kB / 436.6 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.343e-05/0.2614, allocations: 62.72 kB / 436.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.502e-05/0.2614, allocations: 36.7 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004313/0.2619, allocations: 219 kB / 436.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.2619, allocations: 16.88 kB / 436.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/0.2619, allocations: 24.38 kB / 437 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007106/0.2626, allocations: 358 kB / 437.3 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2626, allocations: 0 / 437.3 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.2627, allocations: 8 kB / 437.3 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.2627, allocations: 4 kB / 437.3 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007658/0.2635, allocations: 253.6 kB / 437.6 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.2652, allocations: 0.9769 MB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007897/0.266, allocations: 210.6 kB / 438.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.2663, allocations: 88.78 kB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.2663, allocations: 3.938 kB / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004974/0.2668, allocations: 229.2 kB / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.2668, allocations: 0 / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.002052/0.2689, allocations: 437.9 kB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/0.269, allocations: 110.7 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.2693, allocations: 289.8 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.2693, allocations: 33.69 kB / 439.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.2695, allocations: 200 kB / 440.1 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.2695, allocations: 47.62 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.2696, allocations: 53.89 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.2698, allocations: 330.8 kB / 440.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/0.2702, allocations: 125.9 kB / 440.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004544/0.2707, allocations: 280 kB / 440.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007019/0.2714, allocations: 312 kB / 441.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.2714, allocations: 4 kB / 441.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001225/0.2726, allocations: 445.5 kB / 441.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.08e-05/0.2726, allocations: 41.69 kB / 441.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.2726, allocations: 7.938 kB / 441.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003535/0.273, allocations: 68.91 kB / 441.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.2732, allocations: 51.89 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002631/0.2759, allocations: 1.596 MB / 443.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/0.2762, allocations: 63.8 kB / 443.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.2763, allocations: 8 kB / 443.5 MB, free: 9.633 MB / 350.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.0001802/0.2764, allocations: 149.7 kB / 443.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.281e-05/0.2765, allocations: 23.86 kB / 443.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.721e-05/0.2765, allocations: 29.7 kB / 443.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2765, allocations: 0 / 443.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.2765, allocations: 0 / 443.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2766, allocations: 0 / 443.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002868/0.2768, allocations: 244.5 kB / 444 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/0.2768, allocations: 7.984 kB / 444 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.277, allocations: 15.98 kB / 444 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002721/0.2772, allocations: 68.8 kB / 444 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.2773, allocations: 7.938 kB / 444.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002266/0.2795, allocations: 1.585 MB / 445.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2795, allocations: 0 / 445.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.2805, allocations: 317.5 kB / 445.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.976e-05/0.2806, allocations: 35.83 kB / 446 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.932e-05/0.2807, allocations: 4 kB / 446 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.2809, allocations: 27.97 kB / 446 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.202e-05/0.281, allocations: 31.88 kB / 446 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.281, allocations: 7.938 kB / 446.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002419/0.2813, allocations: 205.2 kB / 446.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2813, allocations: 3.938 kB / 446.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.2816, allocations: 75.89 kB / 446.3 MB, free: 6.625 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.001389/0.283, allocations: 0.8477 MB / 447.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001009/0.284, allocations: 439.2 kB / 447.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.84e-06/0.284, allocations: 4 kB / 447.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004482/0.2845, allocations: 226.5 kB / 447.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.2848, allocations: 41.33 kB / 447.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005534/0.2903, allocations: 3.111 MB / 451 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.2905, allocations: 146.9 kB / 451.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.2906, allocations: 22.3 kB / 451.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.2907, allocations: 79.41 kB / 451.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2907, allocations: 0 / 451.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03956/0.3303, allocations: 7.522 MB / 458.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.49, allocations: 10.5 kB / 458.8 MB, free: 10.11 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.870088427996961]