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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008096/0.0008099, allocations: 90.72 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008676/0.0008676, allocations: 177 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003547, allocations: 8 kB / 301.5 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09795/0.09833, allocations: 50.41 MB / 351.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1813/0.2796, allocations: 25.64 MB / 377.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02564/0.3053, allocations: 22.26 MB / 399.8 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006079/0.3114, allocations: 63.25 kB / 399.9 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006017/0.3175, allocations: 1.53 MB / 401.4 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01566/0.3332, allocations: 2.713 MB / 404.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006881/0.3401, allocations: 1.358 MB / 405.5 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01716/0.3573, allocations: 12.43 MB / 417.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001448/0.3588, allocations: 0.8086 MB / 418.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003076/0.3619, allocations: 1.978 MB / 420.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002275/0.3641, allocations: 2.029 MB / 422.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002423/0.3644, allocations: 76 kB / 422.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004327/0.3687, allocations: 1.482 MB / 424.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004687/0.3692, allocations: 0.5502 MB / 424.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002248/0.3715, allocations: 2.578 MB / 427.4 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006389/0.3779, allocations: 6.351 MB / 433.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3779, allocations: 0 / 433.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.3779, allocations: 4 kB / 433.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001478/0.3781, allocations: 0 / 433.8 MB, free: 3.488 MB / 334.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.007851/0.3859, allocations: 5.788 MB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.386, allocations: 8.031 kB / 439.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002342/0.3862, allocations: 161.2 kB / 439.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007505/0.387, allocations: 0.738 MB / 440.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006292/0.3933, allocations: 4.632 MB / 445.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.2e-05/0.3933, allocations: 70 kB / 445.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.3936, allocations: 107.8 kB / 445.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.3957, allocations: 1.317 MB / 446.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.3957, allocations: 3.938 kB / 446.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.3958, allocations: 36 kB / 446.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.633e-05/0.3959, allocations: 43.97 kB / 446.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002355/0.3982, allocations: 1.519 MB / 448.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008774/0.407, allocations: 5.658 MB / 453.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.4087, allocations: 1.025 MB / 454.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/0.4103, allocations: 1.251 MB / 456.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04966/0.4599, allocations: 59.85 MB / 0.5039 GB, free: 8.785 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.461, allocations: 0.5794 MB / 0.5045 GB, free: 8.191 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 4.709e-06/0.461, allocations: 4 kB / 0.5045 GB, free: 8.188 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003457/0.4645, allocations: 1.93 MB / 0.5064 GB, free: 6.246 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.4646, allocations: 71.97 kB / 0.5064 GB, free: 6.164 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007054/0.4716, allocations: 5.586 MB / 0.5119 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.4717, allocations: 41.7 kB / 0.5119 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002217/0.474, allocations: 2.939 MB / 0.5148 GB, free: 13.61 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.4742, allocations: 303.8 kB / 0.5151 GB, free: 13.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.4744, allocations: 121.6 kB / 0.5152 GB, free: 13.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.353e-05/0.4745, allocations: 305.1 kB / 0.5155 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008121/0.4753, allocations: 423.8 kB / 0.5159 GB, free: 12.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.4765, allocations: 1.106 MB / 0.517 GB, free: 11.03 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002099/0.4786, allocations: 1.662 MB / 0.5186 GB, free: 9.035 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.4786, allocations: 8 kB / 0.5186 GB, free: 9.027 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003513/0.4821, allocations: 2.241 MB / 0.5208 GB, free: 6.773 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.4822, allocations: 16 kB / 0.5208 GB, free: 6.758 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001783/0.4823, allocations: 167.9 kB / 0.521 GB, free: 6.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.556e-05/0.4824, allocations: 32.78 kB / 0.521 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.4835, allocations: 371.4 kB / 0.5213 GB, free: 6.199 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.451e-05/0.4835, allocations: 47.8 kB / 0.5214 GB, free: 6.152 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.4851, allocations: 202.2 kB / 0.5216 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.4853, allocations: 124 kB / 0.5217 GB, free: 5.832 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.001275/0.4866, allocations: 0.7081 MB / 0.5224 GB, free: 5.113 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005687/0.4872, allocations: 0.7141 MB / 0.5231 GB, free: 4.391 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00461/0.4918, allocations: 2.197 MB / 0.5252 GB, free: 2.184 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.4918, allocations: 8 kB / 0.5252 GB, free: 2.176 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4918, allocations: 4 kB / 0.5252 GB, free: 2.172 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.4918, allocations: 3.984 kB / 0.5253 GB, free: 2.168 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1838/0.6757, allocations: 3.644 MB / 0.5288 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000205/0.6759, allocations: 138.1 kB / 0.5289 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007766/0.6767, allocations: 165.5 kB / 0.5291 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.988e-06/0.6767, allocations: 3.781 kB / 0.5291 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.625e-05/0.6768, allocations: 61.34 kB / 0.5292 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.6768, allocations: 6.438 kB / 0.5292 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.6769, allocations: 0.625 kB / 0.5292 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004195/0.6811, allocations: 2.221 MB / 0.5313 GB, free: 154.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/0.6827, allocations: 0.8141 MB / 0.5321 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004993/0.6832, allocations: 16.73 kB / 0.5321 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.6843, allocations: 44.98 kB / 0.5322 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/0.6846, allocations: 97.62 kB / 0.5323 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.6847, allocations: 72.59 kB / 0.5324 GB, free: 154.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006312/0.691, allocations: 3.603 MB / 0.5359 GB, free: 153.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.691, allocations: 0 / 0.5359 GB, free: 153.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003778/0.6948, allocations: 1.073 MB / 0.5369 GB, free: 153.2 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.006629/0.7015, allocations: 3.868 MB / 0.5407 GB, free: 151.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00268/0.7042, allocations: 1.471 MB / 0.5421 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.7042, allocations: 0 / 0.5421 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.7054, allocations: 0.7946 MB / 0.5429 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006723/0.7121, allocations: 1.119 MB / 0.544 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08864/0.8008, allocations: 49.39 MB / 0.5922 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/0.8022, allocations: 2.596 MB / 0.5948 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002589/0.8048, allocations: 0.6807 MB / 0.5954 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/0.8067, allocations: 2.389 MB / 0.5978 GB, free: 98.24 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.8067, allocations: 8 kB / 0.5978 GB, free: 98.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.46/2.266, allocations: 107 MB / 0.7023 GB, free: 141.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/2.267, allocations: 194.5 kB / 0.7025 GB, free: 140.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.546/7.813, allocations: 0 / 0.7025 GB, free: 140.9 MB / 446.1 MB (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 --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) 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) Reference file matches