Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_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.001154/0.001154, allocations: 97.98 kB / 17.58 MB, free: 5.418 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.001222/0.001222, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001406, allocations: 55.91 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08897, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02219/0.1112, allocations: 25.35 MB / 352.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03038/0.1416, allocations: 21.33 MB / 374.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006265/0.1479, allocations: 55.69 kB / 374.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005294/0.1533, allocations: 1.726 MB / 375.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01023/0.1636, allocations: 3.164 MB / 379 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1584/0.322, allocations: 1.558 MB / 380.6 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01758/0.3396, allocations: 12.36 MB / 392.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001483/0.3411, allocations: 0.867 MB / 393.8 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.3443, allocations: 1.842 MB / 395.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003026/0.3474, allocations: 2.047 MB / 397.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004982/0.3479, allocations: 140 kB / 397.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004318/0.3522, allocations: 1.222 MB / 399 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006944/0.3529, allocations: 0.6091 MB / 399.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003603/0.3565, allocations: 2.65 MB / 402.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006756/0.3633, allocations: 6.611 MB / 408.9 MB, free: 7.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3633, allocations: 3.938 kB / 408.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3633, allocations: 0 / 408.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001444/0.3635, allocations: 0 / 408.9 MB, free: 7.586 MB / 318.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.007637/0.3711, allocations: 6.744 MB / 415.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3712, allocations: 12.03 kB / 415.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/0.3713, allocations: 157.2 kB / 415.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006156/0.372, allocations: 0.7481 MB / 416.6 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007015/0.379, allocations: 4.67 MB / 421.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.197e-05/0.3791, allocations: 69.94 kB / 421.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002433/0.3793, allocations: 99.89 kB / 421.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/0.3816, allocations: 1.302 MB / 422.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.3816, allocations: 7.188 kB / 422.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.3817, allocations: 32 kB / 422.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.372e-05/0.3818, allocations: 41.66 kB / 422.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002362/0.3841, allocations: 1.488 MB / 424.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009332/0.3935, allocations: 5.642 MB / 429.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.3952, allocations: 0.9962 MB / 430.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.3968, allocations: 1.221 MB / 432.1 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05701/0.4538, allocations: 59.93 MB / 492.1 MB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001035/0.4548, allocations: 0.5591 MB / 492.6 MB, free: 12.35 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 3.657e-06/0.4549, allocations: 0 / 492.6 MB, free: 12.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003642/0.4585, allocations: 1.878 MB / 494.5 MB, free: 10.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.4586, allocations: 59.97 kB / 494.6 MB, free: 10.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009093/0.4677, allocations: 5.632 MB / 0.4885 GB, free: 4.789 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001925/0.4679, allocations: 37.7 kB / 0.4885 GB, free: 4.746 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002997/0.4709, allocations: 2.941 MB / 0.4914 GB, free: 1.805 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005354/0.4715, allocations: 299.3 kB / 0.4917 GB, free: 1.516 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008763/0.4724, allocations: 422.5 kB / 0.4921 GB, free: 1.098 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.4725, allocations: 305.1 kB / 0.4924 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.4735, allocations: 403.8 kB / 0.4927 GB, free: 412 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.4749, allocations: 1.091 MB / 0.4938 GB, free: 15 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002451/0.4773, allocations: 1.611 MB / 0.4954 GB, free: 13.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/0.4774, allocations: 8 kB / 0.4954 GB, free: 13.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004016/0.4814, allocations: 2.216 MB / 0.4975 GB, free: 11.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.855e-05/0.4815, allocations: 16 kB / 0.4976 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002334/0.4817, allocations: 162.2 kB / 0.4977 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.016e-05/0.4818, allocations: 32 kB / 0.4977 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.483, allocations: 364 kB / 0.4981 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-05/0.4831, allocations: 51.78 kB / 0.4981 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001979/0.485, allocations: 186.2 kB / 0.4983 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002311/0.4853, allocations: 124 kB / 0.4984 GB, free: 10.13 MB / 430.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.001642/0.4869, allocations: 0.716 MB / 0.4991 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00108/0.488, allocations: 0.7256 MB / 0.4998 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005434/0.4935, allocations: 2.164 MB / 0.502 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.4935, allocations: 8 kB / 0.502 GB, free: 6.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.4935, allocations: 0 / 0.502 GB, free: 6.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.4935, allocations: 3.984 kB / 0.502 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007099/0.5006, allocations: 3.628 MB / 0.5055 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001766/0.5008, allocations: 140.1 kB / 0.5056 GB, free: 2.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007739/0.5016, allocations: 147.8 kB / 0.5058 GB, free: 2.535 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.5016, allocations: 7.938 kB / 0.5058 GB, free: 2.527 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.5017, allocations: 63.98 kB / 0.5059 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.5017, allocations: 4 kB / 0.5059 GB, free: 2.461 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5018, allocations: 0.8125 kB / 0.5059 GB, free: 2.461 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003587/0.5054, allocations: 2.165 MB / 0.508 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001696/0.5071, allocations: 0.8242 MB / 0.5088 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008484/0.5079, allocations: 16 kB / 0.5088 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.5092, allocations: 27.97 kB / 0.5088 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.5094, allocations: 104.5 kB / 0.5089 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.5096, allocations: 72.48 kB / 0.509 GB, free: 15.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005074/0.5146, allocations: 3.633 MB / 0.5125 GB, free: 11.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5147, allocations: 4 kB / 0.5125 GB, free: 11.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002548/0.5172, allocations: 1.085 MB / 0.5136 GB, free: 10.5 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.005543/0.5228, allocations: 3.82 MB / 0.5173 GB, free: 6.863 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002804/0.5256, allocations: 1.462 MB / 0.5188 GB, free: 5.355 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5256, allocations: 0 / 0.5188 GB, free: 5.355 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.5267, allocations: 0.7783 MB / 0.5195 GB, free: 4.535 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003542/0.5303, allocations: 0.9801 MB / 0.5205 GB, free: 3.551 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.199/0.7293, allocations: 48.27 MB / 0.5676 GB, free: 161.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/0.7308, allocations: 2.607 MB / 0.5702 GB, free: 160.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002143/0.733, allocations: 0.6895 MB / 0.5708 GB, free: 160.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001603/0.7346, allocations: 2.414 MB / 0.5732 GB, free: 158.5 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/0.7346, allocations: 0 / 0.5732 GB, free: 158.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1498/0.8844, allocations: 110.3 MB / 0.6809 GB, free: 50.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.96, allocations: 4.562 kB / 0.6809 GB, free: 50.79 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches