Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001495/0.001495, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001673/0.001673, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.383/1.383, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 47.92 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2461, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02565/0.2718, allocations: 26.83 MB / 458.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02884/0.3006, allocations: 22.44 MB / 481.2 MB, free: 5.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004504/0.3051, allocations: 269.1 kB / 481.4 MB, free: 5.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00524/0.3104, allocations: 1.792 MB / 483.2 MB, free: 3.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.3222, allocations: 3.322 MB / 486.6 MB, free: 15.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005447/0.3277, allocations: 1.64 MB / 488.2 MB, free: 14.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01961/0.3473, allocations: 12.92 MB / 0.4894 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001255/0.3485, allocations: 0.5043 MB / 0.4899 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003426/0.3519, allocations: 2.189 MB / 0.492 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003991/0.3559, allocations: 2.111 MB / 0.4941 GB, free: 12.53 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005222/0.3565, allocations: 132 kB / 0.4942 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004633/0.3611, allocations: 1.541 MB / 0.4957 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006928/0.3618, allocations: 0.5932 MB / 0.4963 GB, free: 10.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00346/0.3652, allocations: 2.624 MB / 0.4988 GB, free: 7.621 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009398/0.3746, allocations: 6.667 MB / 0.5053 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.3746, allocations: 0 / 0.5053 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3747, allocations: 0 / 0.5053 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001599/0.3748, allocations: 0 / 0.5053 GB, free: 0.9219 MB / 414.1 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.01057/0.3854, allocations: 6.859 MB / 0.512 GB, free: 9.977 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3854, allocations: 8.031 kB / 0.512 GB, free: 9.969 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.063e-05/0.3855, allocations: 30 kB / 0.5121 GB, free: 9.941 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002097/0.3857, allocations: 165.1 kB / 0.5122 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/0.3867, allocations: 0.7803 MB / 0.513 GB, free: 8.984 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007677/0.3944, allocations: 4.375 MB / 0.5173 GB, free: 4.484 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.978e-05/0.3944, allocations: 70 kB / 0.5173 GB, free: 4.418 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002235/0.3947, allocations: 107.8 kB / 0.5174 GB, free: 4.312 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002306/0.397, allocations: 1.305 MB / 0.5187 GB, free: 2.988 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.397, allocations: 0 / 0.5187 GB, free: 2.988 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.3971, allocations: 32 kB / 0.5187 GB, free: 2.957 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.405e-05/0.3972, allocations: 43.97 kB / 0.5188 GB, free: 2.914 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002683/0.3998, allocations: 1.488 MB / 0.5202 GB, free: 1.422 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01028/0.4101, allocations: 5.554 MB / 0.5257 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.4118, allocations: 0.8757 MB / 0.5265 GB, free: 10.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.4134, allocations: 1.067 MB / 0.5276 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2371/0.6505, allocations: 27.16 MB / 0.5541 GB, free: 95.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008422/0.6513, allocations: 0.5676 MB / 0.5546 GB, free: 95.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.395e-06/0.6513, allocations: 0 / 0.5546 GB, free: 95.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002577/0.6539, allocations: 1.906 MB / 0.5565 GB, free: 93.81 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.654, allocations: 64.06 kB / 0.5566 GB, free: 93.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004526/0.6585, allocations: 5.589 MB / 0.562 GB, free: 88.19 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.367e-05/0.6586, allocations: 37.7 kB / 0.5621 GB, free: 88.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001646/0.6602, allocations: 2.966 MB / 0.5649 GB, free: 85.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002151/0.6604, allocations: 314 kB / 0.5652 GB, free: 84.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004135/0.6608, allocations: 430.2 kB / 0.5657 GB, free: 84.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.939e-05/0.6609, allocations: 305.1 kB / 0.5659 GB, free: 84.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007116/0.6616, allocations: 401.4 kB / 0.5663 GB, free: 83.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008639/0.6625, allocations: 1.095 MB / 0.5674 GB, free: 82.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.6641, allocations: 1.606 MB / 0.569 GB, free: 80.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.6641, allocations: 8 kB / 0.569 GB, free: 80.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002845/0.6669, allocations: 2.251 MB / 0.5712 GB, free: 78.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.6669, allocations: 12 kB / 0.5712 GB, free: 78.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/0.6671, allocations: 164 kB / 0.5713 GB, free: 78.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.685e-05/0.6671, allocations: 32 kB / 0.5714 GB, free: 78.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.6681, allocations: 363 kB / 0.5717 GB, free: 77.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.728e-05/0.6682, allocations: 43.86 kB / 0.5718 GB, free: 77.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.6698, allocations: 191.7 kB / 0.5719 GB, free: 77.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.67, allocations: 124 kB / 0.5721 GB, free: 77.46 MB / 446.1 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.001061/0.671, allocations: 0.7201 MB / 0.5728 GB, free: 76.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005037/0.6715, allocations: 0.752 MB / 0.5735 GB, free: 76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003419/0.6749, allocations: 2.149 MB / 0.5756 GB, free: 73.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.675, allocations: 11.98 kB / 0.5756 GB, free: 73.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.675, allocations: 0 / 0.5756 GB, free: 73.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.675, allocations: 0 / 0.5756 GB, free: 73.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004155/0.6791, allocations: 3.586 MB / 0.5791 GB, free: 70.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001274/0.6793, allocations: 140 kB / 0.5792 GB, free: 70.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006674/0.6799, allocations: 159.8 kB / 0.5794 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.6799, allocations: 4 kB / 0.5794 GB, free: 69.94 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.351e-05/0.68, allocations: 60 kB / 0.5795 GB, free: 69.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.68, allocations: 0 / 0.5795 GB, free: 69.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.68, allocations: 4 kB / 0.5795 GB, free: 69.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/0.6825, allocations: 2.19 MB / 0.5816 GB, free: 67.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/0.6836, allocations: 0.7822 MB / 0.5824 GB, free: 66.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005071/0.6841, allocations: 12 kB / 0.5824 GB, free: 66.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.6851, allocations: 43.47 kB / 0.5824 GB, free: 66.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.6853, allocations: 96.5 kB / 0.5825 GB, free: 66.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.6854, allocations: 72.61 kB / 0.5826 GB, free: 66.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003507/0.6889, allocations: 3.608 MB / 0.5861 GB, free: 63.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6889, allocations: 0 / 0.5861 GB, free: 63.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001872/0.6908, allocations: 1.088 MB / 0.5872 GB, free: 62.07 MB / 446.1 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.003998/0.6948, allocations: 3.843 MB / 0.5909 GB, free: 58.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.6967, allocations: 1.37 MB / 0.5923 GB, free: 56.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.6967, allocations: 0 / 0.5923 GB, free: 56.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008389/0.6976, allocations: 0.7281 MB / 0.593 GB, free: 56.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004149/0.7017, allocations: 1.175 MB / 0.5941 GB, free: 54.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03273/0.7344, allocations: 30.57 MB / 0.624 GB, free: 23.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.7356, allocations: 2.592 MB / 0.6265 GB, free: 20.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001701/0.7373, allocations: 0.6846 MB / 0.6272 GB, free: 20.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/0.7389, allocations: 2.389 MB / 0.6295 GB, free: 17.83 MB / 446.1 MB Notification: Performance of SimCode: time 1.252e-06/0.7389, allocations: 0 / 0.6295 GB, free: 17.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1859/0.9248, allocations: 112.5 MB / 0.7394 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.71/28.64, allocations: 19.61 kB / 0.7394 GB, free: 1.902 MB / 0.5294 GB " [Timeout remaining time 631] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 34.189983969030436]