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.001335/0.001335, allocations: 120 kB / 18.49 MB, free: 4.566 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.001404/0.001404, allocations: 218.3 kB / 21.46 MB, free: 1.613 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.483/1.483, allocations: 230.4 MB / 254.7 MB, free: 15.21 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.001876/0.001876, allocations: 63.91 kB / 373.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1143, allocations: 53.38 MB / 427 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2744/0.3888, allocations: 26.81 MB / 453.9 MB, free: 7.574 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0283/0.4171, allocations: 22.43 MB / 476.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006438/0.4235, allocations: 268.1 kB / 476.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006443/0.43, allocations: 1.788 MB / 478.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01697/0.4469, allocations: 3.245 MB / 481.6 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007587/0.4545, allocations: 1.635 MB / 483.2 MB, free: 8.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0233/0.4778, allocations: 12.88 MB / 496.1 MB, free: 3.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001498/0.4793, allocations: 0.5038 MB / 496.6 MB, free: 2.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005498/0.4848, allocations: 2.189 MB / 498.8 MB, free: 1.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005343/0.4902, allocations: 2.105 MB / 0.4892 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009686/0.4911, allocations: 136 kB / 0.4893 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008367/0.4995, allocations: 1.538 MB / 0.4908 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001218/0.5007, allocations: 0.5972 MB / 0.4914 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00562/0.5063, allocations: 2.624 MB / 0.4939 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01474/0.5211, allocations: 6.663 MB / 0.5004 GB, free: 5.145 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.5211, allocations: 0 / 0.5004 GB, free: 5.145 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.5211, allocations: 0 / 0.5004 GB, free: 5.145 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003001/0.5214, allocations: 0 / 0.5004 GB, free: 5.145 MB / 398.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.01403/0.5354, allocations: 6.934 MB / 0.5072 GB, free: 14.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.5355, allocations: 12.03 kB / 0.5072 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.961e-05/0.5355, allocations: 25.94 kB / 0.5073 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002864/0.5358, allocations: 161.2 kB / 0.5074 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001228/0.537, allocations: 0.7803 MB / 0.5082 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008679/0.5457, allocations: 4.659 MB / 0.5127 GB, free: 8.371 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-05/0.5458, allocations: 66 kB / 0.5128 GB, free: 8.309 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003793/0.5462, allocations: 107.6 kB / 0.5129 GB, free: 8.207 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00264/0.5488, allocations: 1.293 MB / 0.5141 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.5488, allocations: 0 / 0.5141 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.549, allocations: 40 kB / 0.5142 GB, free: 6.855 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.551e-05/0.549, allocations: 43.91 kB / 0.5142 GB, free: 6.812 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002912/0.5519, allocations: 1.484 MB / 0.5157 GB, free: 5.324 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01271/0.5646, allocations: 5.627 MB / 0.5212 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00204/0.5667, allocations: 0.864 MB / 0.522 GB, free: 14.72 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/0.5684, allocations: 1.055 MB / 0.523 GB, free: 13.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06708/0.6355, allocations: 61.06 MB / 0.5827 GB, free: 8.137 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.6367, allocations: 0.5637 MB / 0.5832 GB, free: 7.562 MB / 494.1 MB Notification: Performance of pre-optimization done (n=85): time 3.757e-06/0.6367, allocations: 3.938 kB / 0.5832 GB, free: 7.559 MB / 494.1 MB Notification: Performance of matching and sorting (n=85): time 0.004496/0.6412, allocations: 1.903 MB / 0.5851 GB, free: 5.645 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.289e-05/0.6413, allocations: 71.95 kB / 0.5852 GB, free: 5.562 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009576/0.6508, allocations: 5.582 MB / 0.5906 GB, free: 8 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003046/0.6511, allocations: 37.7 kB / 0.5906 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003317/0.6545, allocations: 2.965 MB / 0.5935 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007401/0.6552, allocations: 313.4 kB / 0.5938 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000878/0.6561, allocations: 427 kB / 0.5942 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.6562, allocations: 305.1 kB / 0.5945 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.6573, allocations: 407.7 kB / 0.5949 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.6589, allocations: 1.087 MB / 0.596 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.6615, allocations: 1.615 MB / 0.5976 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.639e-05/0.6615, allocations: 12 kB / 0.5976 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00498/0.6665, allocations: 2.235 MB / 0.5998 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/0.6666, allocations: 23.97 kB / 0.5998 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002343/0.6668, allocations: 164 kB / 0.5999 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.611e-05/0.6668, allocations: 35.94 kB / 0.6 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.6681, allocations: 351.4 kB / 0.6003 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.831e-05/0.6681, allocations: 51.8 kB / 0.6004 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/0.6704, allocations: 197.8 kB / 0.6005 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002488/0.6707, allocations: 120 kB / 0.6007 GB, free: 5.016 MB / 0.4981 GB 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.001742/0.6724, allocations: 0.7121 MB / 0.6014 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/0.6737, allocations: 0.753 MB / 0.6021 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004964/0.6786, allocations: 2.151 MB / 0.6042 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.6786, allocations: 4 kB / 0.6042 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.6786, allocations: 7.938 kB / 0.6042 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.6787, allocations: 3.984 kB / 0.6042 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006727/0.6854, allocations: 3.611 MB / 0.6077 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001752/0.6856, allocations: 140.1 kB / 0.6079 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/0.6863, allocations: 151.8 kB / 0.608 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.523e-06/0.6863, allocations: 0 / 0.608 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.6864, allocations: 63.98 kB / 0.6081 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-06/0.6865, allocations: 4 kB / 0.6081 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6865, allocations: 0 / 0.6081 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.6904, allocations: 2.189 MB / 0.6102 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001918/0.6923, allocations: 0.8669 MB / 0.6111 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006956/0.693, allocations: 12 kB / 0.6111 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.6942, allocations: 31.97 kB / 0.6111 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.6944, allocations: 100.6 kB / 0.6112 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/0.6946, allocations: 71.98 kB / 0.6113 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006339/0.7009, allocations: 3.604 MB / 0.6148 GB, free: 6.438 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7009, allocations: 4 kB / 0.6148 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003194/0.7041, allocations: 1.081 MB / 0.6158 GB, free: 5.352 MB / 0.5137 GB 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.006999/0.7111, allocations: 3.852 MB / 0.6196 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003037/0.7142, allocations: 1.361 MB / 0.6209 GB, free: 60 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.7142, allocations: 0 / 0.6209 GB, free: 60 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.7156, allocations: 0.7401 MB / 0.6217 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00636/0.722, allocations: 1.168 MB / 0.6228 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3149/1.037, allocations: 30.56 MB / 0.6526 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002468/1.039, allocations: 2.589 MB / 0.6552 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00265/1.042, allocations: 0.6824 MB / 0.6558 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002526/1.045, allocations: 2.398 MB / 0.6582 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of SimCode: time 2.224e-06/1.045, allocations: 3.188 kB / 0.6582 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1599/1.204, allocations: 111.5 MB / 0.767 GB, free: 73.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.31/28.51, allocations: 6.25 kB / 0.767 GB, free: 73.93 MB / 0.5294 GB " [Timeout remaining time 631] (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: 34.20174947503256]