Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.00154, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 211 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 230.5 MB / 258.2 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 59.91 kB / 378.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2746, allocations: 53.41 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02922/0.3038, allocations: 26.83 MB / 458.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0495/0.3533, allocations: 22.44 MB / 481.2 MB, free: 5.246 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009195/0.3625, allocations: 265.1 kB / 481.5 MB, free: 4.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007423/0.3699, allocations: 1.792 MB / 483.3 MB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01673/0.3867, allocations: 3.329 MB / 486.6 MB, free: 15.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007828/0.3945, allocations: 1.636 MB / 488.2 MB, free: 14.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02605/0.4205, allocations: 12.92 MB / 0.4894 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00236/0.4229, allocations: 0.5004 MB / 0.4899 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005067/0.428, allocations: 2.189 MB / 0.4921 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004511/0.4325, allocations: 2.1 MB / 0.4941 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001031/0.4335, allocations: 136 kB / 0.4942 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006588/0.4401, allocations: 1.541 MB / 0.4957 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001086/0.4412, allocations: 0.601 MB / 0.4963 GB, free: 10.1 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004515/0.4457, allocations: 2.624 MB / 0.4989 GB, free: 7.461 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01325/0.4589, allocations: 6.663 MB / 0.5054 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.459, allocations: 0 / 0.5054 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.459, allocations: 0 / 0.5054 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002384/0.4592, allocations: 0 / 0.5054 GB, free: 0.7656 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.01345/0.4726, allocations: 6.859 MB / 0.5121 GB, free: 9.824 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.4727, allocations: 12.03 kB / 0.5121 GB, free: 9.812 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.882e-05/0.4728, allocations: 26 kB / 0.5121 GB, free: 9.789 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002526/0.473, allocations: 161.2 kB / 0.5123 GB, free: 9.621 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.4744, allocations: 0.7803 MB / 0.513 GB, free: 8.836 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00926/0.4836, allocations: 4.375 MB / 0.5173 GB, free: 4.336 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.762e-05/0.4837, allocations: 69.94 kB / 0.5174 GB, free: 4.27 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.484, allocations: 107.8 kB / 0.5175 GB, free: 4.164 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002504/0.4865, allocations: 1.301 MB / 0.5188 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.4865, allocations: 8 kB / 0.5188 GB, free: 2.836 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.4866, allocations: 32 kB / 0.5188 GB, free: 2.805 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.406e-05/0.4867, allocations: 39.97 kB / 0.5188 GB, free: 2.766 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.4895, allocations: 1.488 MB / 0.5203 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/0.5015, allocations: 5.566 MB / 0.5257 GB, free: 11.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.5033, allocations: 0.868 MB / 0.5266 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001712/0.505, allocations: 1.071 MB / 0.5276 GB, free: 9.684 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3058/0.8108, allocations: 27.16 MB / 0.5541 GB, free: 95.42 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009586/0.8118, allocations: 0.5542 MB / 0.5547 GB, free: 95.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.036e-06/0.8118, allocations: 0 / 0.5547 GB, free: 95.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003115/0.8149, allocations: 1.914 MB / 0.5565 GB, free: 93.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.815, allocations: 64.06 kB / 0.5566 GB, free: 93.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005723/0.8207, allocations: 5.593 MB / 0.5621 GB, free: 87.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.8208, allocations: 41.55 kB / 0.5621 GB, free: 87.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/0.8227, allocations: 2.965 MB / 0.565 GB, free: 84.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/0.8229, allocations: 314 kB / 0.5653 GB, free: 84.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004434/0.8234, allocations: 427 kB / 0.5657 GB, free: 84.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.196e-05/0.8234, allocations: 302.6 kB / 0.566 GB, free: 83.99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007304/0.8242, allocations: 407.3 kB / 0.5664 GB, free: 83.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009042/0.8251, allocations: 1.091 MB / 0.5675 GB, free: 82.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.8268, allocations: 1.602 MB / 0.569 GB, free: 80.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.039e-05/0.8268, allocations: 8 kB / 0.569 GB, free: 80.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003122/0.8299, allocations: 2.248 MB / 0.5712 GB, free: 78.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.8299, allocations: 19.98 kB / 0.5712 GB, free: 78.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000165/0.8301, allocations: 159.9 kB / 0.5714 GB, free: 77.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.846e-05/0.8301, allocations: 36 kB / 0.5714 GB, free: 77.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.8312, allocations: 357.5 kB / 0.5718 GB, free: 77.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.878e-05/0.8312, allocations: 47.84 kB / 0.5718 GB, free: 77.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/0.8329, allocations: 192.5 kB / 0.572 GB, free: 77.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001568/0.8331, allocations: 124 kB / 0.5721 GB, free: 77.21 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.001158/0.8342, allocations: 0.7136 MB / 0.5728 GB, free: 76.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006195/0.8348, allocations: 0.7531 MB / 0.5735 GB, free: 75.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003706/0.8385, allocations: 2.152 MB / 0.5757 GB, free: 73.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.8385, allocations: 8 kB / 0.5757 GB, free: 73.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.8385, allocations: 0 / 0.5757 GB, free: 73.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.8386, allocations: 3.984 kB / 0.5757 GB, free: 73.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00543/0.844, allocations: 3.584 MB / 0.5792 GB, free: 69.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000142/0.8441, allocations: 140 kB / 0.5793 GB, free: 69.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007126/0.8448, allocations: 155.4 kB / 0.5794 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.107e-05/0.8449, allocations: 4 kB / 0.5794 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.271e-05/0.8449, allocations: 64.05 kB / 0.5795 GB, free: 69.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.845, allocations: 11.62 kB / 0.5795 GB, free: 69.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.845, allocations: 0 / 0.5795 GB, free: 69.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002944/0.8479, allocations: 2.186 MB / 0.5817 GB, free: 67.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/0.8495, allocations: 0.7764 MB / 0.5824 GB, free: 66.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009762/0.8505, allocations: 19.92 kB / 0.5824 GB, free: 66.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/0.852, allocations: 35.97 kB / 0.5825 GB, free: 66.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/0.8522, allocations: 100.5 kB / 0.5826 GB, free: 66.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.8523, allocations: 68 kB / 0.5826 GB, free: 66.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005494/0.8578, allocations: 3.604 MB / 0.5861 GB, free: 62.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8578, allocations: 0 / 0.5861 GB, free: 62.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002752/0.8606, allocations: 1.088 MB / 0.5872 GB, free: 61.8 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.00535/0.8659, allocations: 3.852 MB / 0.591 GB, free: 57.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.8681, allocations: 1.362 MB / 0.5923 GB, free: 56.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.8681, allocations: 0 / 0.5923 GB, free: 56.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009103/0.869, allocations: 0.7361 MB / 0.593 GB, free: 55.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006607/0.8756, allocations: 1.176 MB / 0.5942 GB, free: 54.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04774/0.9233, allocations: 30.57 MB / 0.624 GB, free: 23.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002205/0.9255, allocations: 2.592 MB / 0.6266 GB, free: 20.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002048/0.9276, allocations: 0.6846 MB / 0.6272 GB, free: 19.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002001/0.9296, allocations: 2.393 MB / 0.6296 GB, free: 17.56 MB / 446.1 MB Notification: Performance of SimCode: time 1.252e-06/0.9296, allocations: 0 / 0.6296 GB, free: 17.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1987/1.128, allocations: 112.5 MB / 0.7394 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.88/30.01, allocations: 8.016 kB / 0.7394 GB, free: 1.602 MB / 0.5294 GB " [Timeout remaining time 630] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 35.93722814897774]