Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001805/0.001805, allocations: 118.3 kB / 18.49 MB, free: 4.559 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.002197/0.002197, allocations: 214.3 kB / 21.46 MB, free: 1.605 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.476/1.476, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 63.91 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1185, allocations: 53.37 MB / 427.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2263/0.3447, allocations: 14.76 MB / 441.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02782/0.3725, allocations: 20.76 MB / 462.6 MB, free: 3.535 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004108/0.3766, allocations: 141.1 kB / 462.7 MB, free: 3.438 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004184/0.3808, allocations: 1.239 MB / 464 MB, free: 2.785 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01136/0.3922, allocations: 2.334 MB / 466.3 MB, free: 1.355 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006665/0.3988, allocations: 1.434 MB / 467.7 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01313/0.412, allocations: 6.593 MB / 474.3 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.413, allocations: 274.6 kB / 474.6 MB, free: 13.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003145/0.4161, allocations: 1.142 MB / 475.7 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002336/0.4185, allocations: 1.111 MB / 476.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002432/0.4187, allocations: 78.69 kB / 476.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007022/0.4257, allocations: 1.474 MB / 478.4 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005524/0.4263, allocations: 329.6 kB / 478.7 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002601/0.4289, allocations: 1.371 MB / 480.1 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007956/0.4368, allocations: 3.795 MB / 483.9 MB, free: 7.664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4369, allocations: 0 / 483.9 MB, free: 7.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4369, allocations: 0 / 483.9 MB, free: 7.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.122e-05/0.4369, allocations: 0 / 483.9 MB, free: 7.664 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006753/0.4437, allocations: 3.809 MB / 487.7 MB, free: 3.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.4437, allocations: 8.031 kB / 487.7 MB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.94e-05/0.4438, allocations: 17 kB / 487.7 MB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002168/0.444, allocations: 98.5 kB / 487.8 MB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005472/0.4445, allocations: 409.4 kB / 488.2 MB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004097/0.4486, allocations: 2.457 MB / 490.7 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.4487, allocations: 37 kB / 490.7 MB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.4488, allocations: 48 kB / 490.8 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.4503, allocations: 0.7343 MB / 491.5 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.4504, allocations: 0 / 491.5 MB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.605e-05/0.4504, allocations: 23.94 kB / 491.5 MB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.774e-05/0.4505, allocations: 19.98 kB / 491.5 MB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.4521, allocations: 0.8163 MB / 492.3 MB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005795/0.4579, allocations: 3.059 MB / 495.4 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.4592, allocations: 0.5127 MB / 495.9 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.4602, allocations: 0.5672 MB / 496.5 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03375/0.4939, allocations: 30.76 MB / 0.5149 GB, free: 7.785 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008032/0.4947, allocations: 365.6 kB / 0.5152 GB, free: 7.414 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.4947, allocations: 0 / 0.5152 GB, free: 7.414 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002682/0.4974, allocations: 1.099 MB / 0.5163 GB, free: 6.309 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.4975, allocations: 67.39 kB / 0.5164 GB, free: 6.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003902/0.5014, allocations: 2.939 MB / 0.5192 GB, free: 3.281 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.391e-05/0.5014, allocations: 37.7 kB / 0.5193 GB, free: 3.238 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/0.5028, allocations: 1.498 MB / 0.5207 GB, free: 1.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.503, allocations: 174.5 kB / 0.5209 GB, free: 1.559 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003444/0.5033, allocations: 226.4 kB / 0.5211 GB, free: 1.332 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.5035, allocations: 345.9 kB / 0.5215 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006255/0.5041, allocations: 241.9 kB / 0.5217 GB, free: 0.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000966/0.5051, allocations: 0.5982 MB / 0.5223 GB, free: 15.97 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.5067, allocations: 0.8973 MB / 0.5231 GB, free: 14.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.5067, allocations: 11.94 kB / 0.5232 GB, free: 14.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002677/0.5094, allocations: 1.239 MB / 0.5244 GB, free: 13.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.09e-05/0.5094, allocations: 12.25 kB / 0.5244 GB, free: 13.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/0.5095, allocations: 80 kB / 0.5245 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.142e-05/0.5096, allocations: 20 kB / 0.5245 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007494/0.5103, allocations: 204.2 kB / 0.5247 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.967e-05/0.5104, allocations: 23.92 kB / 0.5247 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.5118, allocations: 111.3 kB / 0.5248 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.5119, allocations: 68 kB / 0.5249 GB, free: 13.14 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0009246/0.5129, allocations: 433.4 kB / 0.5253 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005311/0.5134, allocations: 401.5 kB / 0.5257 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002814/0.5162, allocations: 1.197 MB / 0.5268 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.5162, allocations: 4.875 kB / 0.5268 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.5162, allocations: 0 / 0.5268 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.5162, allocations: 0 / 0.5268 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003592/0.5198, allocations: 2.104 MB / 0.5289 GB, free: 8.934 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.951e-05/0.5199, allocations: 71.98 kB / 0.529 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004974/0.5204, allocations: 87.92 kB / 0.529 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/0.5204, allocations: 8.75 kB / 0.529 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.69e-05/0.5205, allocations: 32 kB / 0.5291 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.5205, allocations: 3.938 kB / 0.5291 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5205, allocations: 0 / 0.5291 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.5229, allocations: 1.314 MB / 0.5304 GB, free: 7.391 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009105/0.5238, allocations: 0.4906 MB / 0.5308 GB, free: 6.879 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002783/0.5241, allocations: 14 kB / 0.5309 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006509/0.5247, allocations: 31.97 kB / 0.5309 GB, free: 6.836 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.5249, allocations: 63.88 kB / 0.531 GB, free: 6.773 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-05/0.525, allocations: 36 kB / 0.531 GB, free: 6.738 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002699/0.5277, allocations: 1.907 MB / 0.5328 GB, free: 4.832 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5277, allocations: 4 kB / 0.5329 GB, free: 4.828 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001524/0.5292, allocations: 0.5852 MB / 0.5334 GB, free: 4.242 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.004017/0.5332, allocations: 2.539 MB / 0.5359 GB, free: 1.672 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001768/0.535, allocations: 0.7868 MB / 0.5367 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.535, allocations: 0 / 0.5367 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000779/0.5358, allocations: 423 kB / 0.5371 GB, free: 432 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002741/0.5385, allocations: 0.6103 MB / 0.5377 GB, free: 15.81 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02623/0.5648, allocations: 16.45 MB / 0.5537 GB, free: 14.83 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.5661, allocations: 1.661 MB / 0.5554 GB, free: 13.14 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001181/0.5673, allocations: 353.2 kB / 0.5557 GB, free: 12.79 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/0.5687, allocations: 1.21 MB / 0.5569 GB, free: 11.59 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5687, allocations: 0 / 0.5569 GB, free: 11.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3366/0.9053, allocations: 61.1 MB / 0.6165 GB, free: 162.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.66/16.56, allocations: 8.781 kB / 0.6166 GB, free: 162.3 MB / 0.5137 GB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: 20.744504193018656]