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.001298/0.001298, allocations: 124.3 kB / 17.79 MB, free: 5.121 MB / 14.72 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.001272/0.001272, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 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 1.449/1.449, allocations: 225.6 MB / 249.1 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] 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 0.002021/0.002021, allocations: 55.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1224, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02715/0.1495, allocations: 26.8 MB / 444.6 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2553/0.4048, allocations: 22.39 MB / 467 MB, free: 5.512 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006794/0.4116, allocations: 182.4 kB / 467.1 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006091/0.4177, allocations: 1.787 MB / 468.9 MB, free: 4.672 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01428/0.432, allocations: 3.252 MB / 472.2 MB, free: 3.328 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007791/0.4398, allocations: 1.618 MB / 473.8 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02046/0.4602, allocations: 12.72 MB / 486.5 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001626/0.4618, allocations: 0.5159 MB / 487 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004563/0.4664, allocations: 2.107 MB / 489.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004542/0.471, allocations: 2.101 MB / 491.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005854/0.4715, allocations: 135.8 kB / 491.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006529/0.4781, allocations: 1.541 MB / 492.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.4791, allocations: 0.5996 MB / 493.5 MB, free: 9.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004563/0.4836, allocations: 2.62 MB / 496.1 MB, free: 7.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01166/0.4953, allocations: 6.659 MB / 0.491 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4953, allocations: 0 / 0.491 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4953, allocations: 3.938 kB / 0.491 GB, free: 1.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001812/0.4955, allocations: 4 kB / 0.491 GB, free: 1.09 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01233/0.5078, allocations: 6.934 MB / 0.4978 GB, free: 10.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.5079, allocations: 8.031 kB / 0.4978 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002292/0.5081, allocations: 161.2 kB / 0.4979 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/0.5091, allocations: 0.7764 MB / 0.4987 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008299/0.5174, allocations: 4.659 MB / 0.5033 GB, free: 4.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.936e-05/0.5175, allocations: 66.5 kB / 0.5033 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002498/0.5177, allocations: 95.95 kB / 0.5034 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002373/0.5201, allocations: 1.305 MB / 0.5047 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.5201, allocations: 0 / 0.5047 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.5202, allocations: 36 kB / 0.5047 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.406e-05/0.5203, allocations: 47.89 kB / 0.5048 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002671/0.523, allocations: 1.484 MB / 0.5062 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01117/0.5341, allocations: 5.616 MB / 0.5117 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.5359, allocations: 0.8763 MB / 0.5126 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.5375, allocations: 1.049 MB / 0.5136 GB, free: 9.672 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06922/0.6067, allocations: 59.81 MB / 0.572 GB, free: 5.676 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/0.6078, allocations: 0.556 MB / 0.5725 GB, free: 5.105 MB / 478.1 MB Notification: Performance of pre-optimization done (n=85): time 2.886e-06/0.6078, allocations: 0 / 0.5725 GB, free: 5.105 MB / 478.1 MB Notification: Performance of matching and sorting (n=85): time 0.003868/0.6117, allocations: 1.918 MB / 0.5744 GB, free: 3.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.6117, allocations: 67.89 kB / 0.5745 GB, free: 3.102 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007562/0.6193, allocations: 5.586 MB / 0.5799 GB, free: 13.54 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001447/0.6194, allocations: 41.7 kB / 0.58 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002748/0.6222, allocations: 2.961 MB / 0.5829 GB, free: 10.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003808/0.6226, allocations: 313.4 kB / 0.5832 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005588/0.6231, allocations: 427 kB / 0.5836 GB, free: 9.793 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.6233, allocations: 309.1 kB / 0.5839 GB, free: 9.488 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008531/0.6241, allocations: 399.8 kB / 0.5842 GB, free: 9.098 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.6255, allocations: 1.091 MB / 0.5853 GB, free: 7.672 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002368/0.6279, allocations: 1.615 MB / 0.5869 GB, free: 5.727 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-05/0.6279, allocations: 8 kB / 0.5869 GB, free: 5.719 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00399/0.6319, allocations: 2.234 MB / 0.5891 GB, free: 3.477 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/0.6319, allocations: 16.62 kB / 0.5891 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002335/0.6322, allocations: 164 kB / 0.5892 GB, free: 3.301 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.495e-05/0.6322, allocations: 39.88 kB / 0.5893 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.6334, allocations: 364.5 kB / 0.5896 GB, free: 2.906 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.282e-05/0.6334, allocations: 43.86 kB / 0.5897 GB, free: 2.863 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.6353, allocations: 190.7 kB / 0.5899 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/0.6355, allocations: 128 kB / 0.59 GB, free: 2.551 MB / 494.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.001505/0.637, allocations: 0.7049 MB / 0.5907 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/0.6381, allocations: 0.7492 MB / 0.5914 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004628/0.6427, allocations: 2.154 MB / 0.5935 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.6427, allocations: 11.94 kB / 0.5935 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.6427, allocations: 3.938 kB / 0.5935 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.6428, allocations: 3.984 kB / 0.5935 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006628/0.6494, allocations: 3.607 MB / 0.597 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002105/0.6496, allocations: 143.9 kB / 0.5972 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007436/0.6503, allocations: 151.8 kB / 0.5973 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.151e-05/0.6503, allocations: 7.984 kB / 0.5973 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.303e-05/0.6504, allocations: 52.06 kB / 0.5974 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-06/0.6504, allocations: 8 kB / 0.5974 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6505, allocations: 0 / 0.5974 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003814/0.6543, allocations: 2.189 MB / 0.5995 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/0.6562, allocations: 0.8592 MB / 0.6004 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006349/0.6568, allocations: 16.09 kB / 0.6004 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.6579, allocations: 39.95 kB / 0.6004 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.6581, allocations: 96.48 kB / 0.6005 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001446/0.6583, allocations: 67.98 kB / 0.6006 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005831/0.6641, allocations: 3.612 MB / 0.6041 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.6641, allocations: 0 / 0.6041 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002661/0.6668, allocations: 1.081 MB / 0.6052 GB, free: 2.891 MB / 0.4981 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.005683/0.6725, allocations: 3.843 MB / 0.6089 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002518/0.675, allocations: 1.373 MB / 0.6103 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.675, allocations: 0 / 0.6103 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.6761, allocations: 0.7357 MB / 0.611 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005037/0.6812, allocations: 1.175 MB / 0.6121 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2398/0.921, allocations: 30.56 MB / 0.642 GB, free: 186 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002447/0.9234, allocations: 2.591 MB / 0.6445 GB, free: 185.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002345/0.9258, allocations: 0.6844 MB / 0.6452 GB, free: 185.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002003/0.9278, allocations: 2.394 MB / 0.6475 GB, free: 185.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.412e-06/0.9278, allocations: 0 / 0.6475 GB, free: 185.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1589/1.087, allocations: 111.4 MB / 0.7563 GB, free: 94.56 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.31/26.39, allocations: 9.109 kB / 0.7563 GB, free: 94.55 MB / 0.5294 GB " [Timeout remaining time 633] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 30.624246302992105]