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.001291/0.001291, allocations: 115.7 kB / 18.49 MB, free: 4.59 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.001279/0.001279, allocations: 194.5 kB / 21.43 MB, free: 1.66 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.421/1.421, allocations: 225.6 MB / 249.8 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 47.92 kB / 366.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09901/0.1005, allocations: 52.15 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02528/0.1258, allocations: 26.81 MB / 445.3 MB, free: 1.715 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2155/0.3413, allocations: 22.39 MB / 467.7 MB, free: 5.504 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005644/0.3469, allocations: 271.8 kB / 467.9 MB, free: 5.316 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00531/0.3522, allocations: 1.788 MB / 469.7 MB, free: 4.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01216/0.3644, allocations: 3.25 MB / 473 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006879/0.3713, allocations: 1.621 MB / 474.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02032/0.3916, allocations: 12.72 MB / 487.3 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.3929, allocations: 0.5088 MB / 487.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003875/0.3968, allocations: 2.185 MB / 490 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004108/0.4009, allocations: 2.105 MB / 492.1 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005729/0.4015, allocations: 135 kB / 492.2 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005927/0.4074, allocations: 1.541 MB / 493.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008197/0.4082, allocations: 0.5988 MB / 494.4 MB, free: 9.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004122/0.4123, allocations: 2.625 MB / 497 MB, free: 7.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.4234, allocations: 6.66 MB / 0.4919 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4234, allocations: 0.6562 kB / 0.4919 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4234, allocations: 8 kB / 0.4919 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001914/0.4236, allocations: 0 / 0.4919 GB, free: 0.8906 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.01045/0.4341, allocations: 6.931 MB / 0.4986 GB, free: 9.855 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.4341, allocations: 8.031 kB / 0.4986 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.46e-05/0.4341, allocations: 29.98 kB / 0.4987 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002038/0.4343, allocations: 157.2 kB / 0.4988 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009816/0.4353, allocations: 0.7811 MB / 0.4996 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006927/0.4422, allocations: 4.656 MB / 0.5041 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.575e-05/0.4423, allocations: 69.98 kB / 0.5042 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002321/0.4425, allocations: 95.95 kB / 0.5043 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/0.4448, allocations: 1.305 MB / 0.5056 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.4448, allocations: 0 / 0.5056 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.445, allocations: 36 kB / 0.5056 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.226e-05/0.445, allocations: 44.97 kB / 0.5056 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.4475, allocations: 1.48 MB / 0.5071 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01/0.4575, allocations: 5.619 MB / 0.5126 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.4592, allocations: 0.8763 MB / 0.5134 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00159/0.4608, allocations: 1.052 MB / 0.5145 GB, free: 9.445 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05998/0.5208, allocations: 59.81 MB / 0.5729 GB, free: 5.457 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001049/0.5218, allocations: 0.5649 MB / 0.5734 GB, free: 4.879 MB / 478.1 MB Notification: Performance of pre-optimization done (n=85): time 2.675e-06/0.5218, allocations: 0 / 0.5734 GB, free: 4.879 MB / 478.1 MB Notification: Performance of matching and sorting (n=85): time 0.003877/0.5257, allocations: 1.91 MB / 0.5753 GB, free: 2.961 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.5258, allocations: 63.95 kB / 0.5753 GB, free: 2.887 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00765/0.5334, allocations: 5.59 MB / 0.5808 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000189/0.5336, allocations: 37.7 kB / 0.5808 GB, free: 13.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002835/0.5365, allocations: 2.969 MB / 0.5837 GB, free: 10.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004089/0.5369, allocations: 313.4 kB / 0.584 GB, free: 9.992 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005812/0.5374, allocations: 435 kB / 0.5845 GB, free: 9.562 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.5376, allocations: 305.1 kB / 0.5847 GB, free: 9.262 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009417/0.5385, allocations: 399.8 kB / 0.5851 GB, free: 8.871 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.5399, allocations: 1.087 MB / 0.5862 GB, free: 7.449 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002661/0.5426, allocations: 1.611 MB / 0.5878 GB, free: 5.508 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/0.5426, allocations: 8 kB / 0.5878 GB, free: 5.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004118/0.5467, allocations: 2.237 MB / 0.59 GB, free: 3.254 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.5467, allocations: 16 kB / 0.59 GB, free: 3.238 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002219/0.547, allocations: 167.9 kB / 0.5901 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.941e-05/0.547, allocations: 35.94 kB / 0.5902 GB, free: 3.039 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.5482, allocations: 360 kB / 0.5905 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.242e-05/0.5482, allocations: 47.8 kB / 0.5906 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.5501, allocations: 188.1 kB / 0.5907 GB, free: 2.457 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001981/0.5503, allocations: 128 kB / 0.5909 GB, free: 2.332 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.001403/0.5517, allocations: 0.7127 MB / 0.5915 GB, free: 1.609 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009903/0.5527, allocations: 0.7492 MB / 0.5923 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00467/0.5574, allocations: 2.151 MB / 0.5944 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.5574, allocations: 11.94 kB / 0.5944 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5574, allocations: 4 kB / 0.5944 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.5574, allocations: 3.984 kB / 0.5944 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006383/0.5638, allocations: 3.607 MB / 0.5979 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000181/0.564, allocations: 140 kB / 0.5981 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007817/0.5647, allocations: 143.9 kB / 0.5982 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.5647, allocations: 8 kB / 0.5982 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.5648, allocations: 62.8 kB / 0.5983 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.5648, allocations: 4 kB / 0.5983 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5648, allocations: 0 / 0.5983 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003739/0.5686, allocations: 2.189 MB / 0.6004 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/0.5701, allocations: 0.8592 MB / 0.6012 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004986/0.5706, allocations: 16 kB / 0.6013 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.5716, allocations: 39.89 kB / 0.6013 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002303/0.5719, allocations: 96.5 kB / 0.6014 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.572, allocations: 67.98 kB / 0.6015 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005282/0.5773, allocations: 3.608 MB / 0.605 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.5773, allocations: 0 / 0.605 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002473/0.5798, allocations: 1.081 MB / 0.606 GB, free: 2.672 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.005787/0.5855, allocations: 3.855 MB / 0.6098 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002588/0.5881, allocations: 1.362 MB / 0.6111 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5881, allocations: 4.125 kB / 0.6111 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001182/0.5893, allocations: 0.7354 MB / 0.6118 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00495/0.5943, allocations: 1.177 MB / 0.613 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2452/0.8394, allocations: 30.55 MB / 0.6428 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002443/0.8419, allocations: 2.595 MB / 0.6454 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002282/0.8442, allocations: 0.6813 MB / 0.646 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002034/0.8462, allocations: 2.395 MB / 0.6484 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.312e-06/0.8462, allocations: 0 / 0.6484 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1699/1.016, allocations: 111.4 MB / 0.7572 GB, free: 92.52 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.88/27.9, allocations: 13.11 kB / 0.7572 GB, free: 92.51 MB / 0.5294 GB " [Timeout remaining time 632] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 33.40350138297072]