Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.00124/0.00124, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001435/0.001435, allocations: 149.1 kB / 23.92 MB, free: 0.6406 MB / 18.57 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 0.8419/0.8419, allocations: 173.4 MB / 200.5 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.136e-05/2.3e-05, allocations: 2.281 kB / 318.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01412/0.01414, allocations: 22.22 MB / 340.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01959/0.03373, allocations: 19.53 MB / 360.2 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004109/0.03784, allocations: 269.1 kB / 360.4 MB, free: 12.05 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004476/0.04231, allocations: 1.695 MB / 362.1 MB, free: 10.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.05236, allocations: 3.422 MB / 365.6 MB, free: 6.895 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004188/0.05655, allocations: 1.62 MB / 367.2 MB, free: 5.266 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01286/0.06941, allocations: 13.1 MB / 380.3 MB, free: 8.125 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.07056, allocations: 496.4 kB / 380.8 MB, free: 7.605 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003176/0.07374, allocations: 2.988 MB / 383.7 MB, free: 4.609 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001458/0.07519, allocations: 1.502 MB / 385.2 MB, free: 3.102 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003276/0.07552, allocations: 136 kB / 385.4 MB, free: 2.969 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002452/0.07797, allocations: 1.253 MB / 386.6 MB, free: 1.715 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003056/0.07828, allocations: 0.6087 MB / 387.2 MB, free: 1.102 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001127/0.07941, allocations: 1.406 MB / 388.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004749/0.08416, allocations: 6.507 MB / 395.2 MB, free: 9.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.08416, allocations: 3.938 kB / 395.2 MB, free: 9.156 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.08416, allocations: 0 / 395.2 MB, free: 9.156 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001136/0.08428, allocations: 0 / 395.2 MB, free: 9.156 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.005584/0.08986, allocations: 6.773 MB / 401.9 MB, free: 2.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.0899, allocations: 8.922 kB / 401.9 MB, free: 2.297 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001443/0.09005, allocations: 165.2 kB / 402.1 MB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005192/0.09057, allocations: 0.7764 MB / 402.9 MB, free: 1.344 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004205/0.09477, allocations: 4.379 MB / 407.3 MB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/0.09481, allocations: 66 kB / 407.3 MB, free: 12.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.09496, allocations: 107.9 kB / 407.4 MB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.09635, allocations: 1.305 MB / 408.7 MB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.09636, allocations: 3.938 kB / 408.7 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.837e-05/0.09644, allocations: 36 kB / 408.8 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.09647, allocations: 39.97 kB / 408.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.09815, allocations: 1.492 MB / 410.3 MB, free: 9.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006255/0.1044, allocations: 5.275 MB / 415.6 MB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.1055, allocations: 0.8757 MB / 416.5 MB, free: 3.543 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009873/0.1064, allocations: 1.068 MB / 417.5 MB, free: 2.465 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0289/0.1353, allocations: 26.99 MB / 444.5 MB, free: 6.738 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006792/0.136, allocations: 0.5567 MB / 445.1 MB, free: 6.176 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 2.484e-06/0.136, allocations: 0 / 445.1 MB, free: 6.176 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.002121/0.1381, allocations: 1.907 MB / 447 MB, free: 4.258 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.1382, allocations: 68 kB / 447 MB, free: 4.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1328/0.2709, allocations: 5.623 MB / 452.7 MB, free: 122.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001985/0.2711, allocations: 43.05 kB / 452.7 MB, free: 122.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/0.2725, allocations: 2.961 MB / 455.7 MB, free: 120.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.2728, allocations: 314.6 kB / 456 MB, free: 120.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/0.2731, allocations: 415.1 kB / 456.4 MB, free: 120.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.431e-05/0.2731, allocations: 304.6 kB / 456.7 MB, free: 120.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004967/0.2736, allocations: 403.1 kB / 457.1 MB, free: 120.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006067/0.2742, allocations: 1.091 MB / 458.2 MB, free: 119.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.2754, allocations: 1.609 MB / 459.8 MB, free: 117.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.2754, allocations: 7.906 kB / 459.8 MB, free: 117.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00188/0.2773, allocations: 2.239 MB / 462 MB, free: 117 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.2773, allocations: 17.69 kB / 462 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.502e-05/0.2774, allocations: 159.7 kB / 462.2 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.2774, allocations: 35.25 kB / 462.2 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005709/0.278, allocations: 365.2 kB / 462.6 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.025e-05/0.278, allocations: 47.12 kB / 462.6 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009578/0.279, allocations: 191.8 kB / 462.8 MB, free: 116.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.2791, allocations: 121.4 kB / 462.9 MB, free: 116.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008272/0.2799, allocations: 0.7125 MB / 463.6 MB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002877/0.2802, allocations: 0.7503 MB / 464.4 MB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00216/0.2823, allocations: 2.159 MB / 466.6 MB, free: 114 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.2824, allocations: 8 kB / 466.6 MB, free: 114 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2824, allocations: 3.75 kB / 466.6 MB, free: 114 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.2824, allocations: 3.984 kB / 466.6 MB, free: 114 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002896/0.2853, allocations: 3.485 MB / 470.1 MB, free: 110.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.823e-05/0.2853, allocations: 140 kB / 470.2 MB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/0.2857, allocations: 162.9 kB / 470.3 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.2857, allocations: 4 kB / 470.4 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.016e-05/0.2858, allocations: 59.98 kB / 470.4 MB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2858, allocations: 4 kB / 470.4 MB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2858, allocations: 0 / 470.4 MB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.2874, allocations: 2.185 MB / 472.6 MB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006762/0.288, allocations: 0.7859 MB / 473.4 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002662/0.2883, allocations: 15.98 kB / 473.4 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005717/0.2889, allocations: 35.97 kB / 473.4 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.289, allocations: 104.5 kB / 473.5 MB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.633e-05/0.2891, allocations: 68 kB / 473.6 MB, free: 107.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002379/0.2915, allocations: 3.608 MB / 477.2 MB, free: 103.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2915, allocations: 0 / 477.2 MB, free: 103.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001275/0.2927, allocations: 1.082 MB / 478.3 MB, free: 102.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002636/0.2954, allocations: 3.936 MB / 482.2 MB, free: 98.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.2966, allocations: 1.37 MB / 483.6 MB, free: 97.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2966, allocations: 0 / 483.6 MB, free: 97.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005025/0.2971, allocations: 0.7359 MB / 484.3 MB, free: 96.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.2996, allocations: 1.17 MB / 485.5 MB, free: 95.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02646/0.3261, allocations: 30.43 MB / 0.5038 GB, free: 64.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008907/0.327, allocations: 2.098 MB / 0.5059 GB, free: 62.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00126/0.3282, allocations: 0.6846 MB / 0.5066 GB, free: 61.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/0.3293, allocations: 2.394 MB / 0.5089 GB, free: 59.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/0.3293, allocations: 0 / 0.5089 GB, free: 59.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.247/0.5763, allocations: 116.9 MB / 0.623 GB, free: 149.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.68, allocations: 9.859 kB / 0.623 GB, free: 149.1 MB / 458.7 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 16.452999096363783]