Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.0007577/0.0007577, allocations: 91.8 kB / 17.3 MB, free: 6.34 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.0009444/0.0009443, allocations: 180.7 kB / 18.21 MB, free: 5.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.25/1.25, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.00043/0.00043, allocations: 12 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07339/0.07383, allocations: 47.59 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01073/0.0846, allocations: 13.92 MB / 343 MB, free: 5.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01959/0.1042, allocations: 19.66 MB / 362.6 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002303/0.1066, allocations: 31.81 kB / 362.7 MB, free: 1.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003257/0.1098, allocations: 1.095 MB / 363.8 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006454/0.1163, allocations: 1.93 MB / 365.7 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003623/0.12, allocations: 1.152 MB / 366.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008341/0.1283, allocations: 6.342 MB / 373.2 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006384/0.129, allocations: 446.1 kB / 373.6 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.1301, allocations: 0.9598 MB / 374.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.1312, allocations: 1.083 MB / 375.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001663/0.1314, allocations: 44 kB / 375.7 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003029/0.1344, allocations: 1.144 MB / 376.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003101/0.1347, allocations: 305.4 kB / 377.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.136, allocations: 1.43 MB / 378.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1495/0.2855, allocations: 3.827 MB / 382.4 MB, free: 22.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2855, allocations: 4.156 kB / 382.4 MB, free: 22.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2855, allocations: 0 / 382.4 MB, free: 22.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.407e-05/0.2856, allocations: 0 / 382.4 MB, free: 22.9 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004516/0.2901, allocations: 3.355 MB / 385.8 MB, free: 20.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2902, allocations: 9.906 kB / 385.8 MB, free: 20.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001227/0.2903, allocations: 98.45 kB / 385.9 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00034/0.2906, allocations: 418.3 kB / 386.3 MB, free: 20.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003152/0.2938, allocations: 2.51 MB / 388.8 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.753e-05/0.2939, allocations: 38.52 kB / 388.8 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.294, allocations: 55.02 kB / 388.9 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.2953, allocations: 0.7543 MB / 389.6 MB, free: 19.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.2953, allocations: 1.094 kB / 389.6 MB, free: 19.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.594e-05/0.2954, allocations: 18.09 kB / 389.7 MB, free: 19.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.2954, allocations: 20.61 kB / 389.7 MB, free: 19.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.297, allocations: 0.8592 MB / 390.5 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005033/0.302, allocations: 3.14 MB / 393.7 MB, free: 19.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.3032, allocations: 0.6269 MB / 394.3 MB, free: 19.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009357/0.3042, allocations: 0.6697 MB / 395 MB, free: 19.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02201/0.3262, allocations: 30.23 MB / 425.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007718/0.327, allocations: 380.7 kB / 425.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.327, allocations: 4 kB / 425.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002359/0.3294, allocations: 1.183 MB / 426.8 MB, free: 8.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.3294, allocations: 64.97 kB / 426.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/0.333, allocations: 3.1 MB / 429.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.542e-05/0.3331, allocations: 37.7 kB / 430 MB, free: 5.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/0.3343, allocations: 1.573 MB / 431.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.3345, allocations: 176.3 kB / 431.7 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3346, allocations: 65.69 kB / 431.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3347, allocations: 341.9 kB / 432.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005842/0.3353, allocations: 261.9 kB / 432.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007901/0.3361, allocations: 0.6236 MB / 433 MB, free: 1.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.3375, allocations: 0.9454 MB / 433.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.425e-06/0.3375, allocations: 4 kB / 433.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00204/0.3396, allocations: 1.287 MB / 435.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.3396, allocations: 15.98 kB / 435.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.683e-05/0.3397, allocations: 84.84 kB / 435.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.708e-05/0.3397, allocations: 19.38 kB / 435.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/0.3404, allocations: 216.2 kB / 435.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.047e-05/0.3405, allocations: 27.08 kB / 435.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.3415, allocations: 120.6 kB / 435.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.674e-05/0.3417, allocations: 64 kB / 435.7 MB, free: 15.11 MB / 350.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.0007085/0.3424, allocations: 448.9 kB / 436.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003415/0.3427, allocations: 399.1 kB / 436.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.3456, allocations: 1.272 MB / 437.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3456, allocations: 4 kB / 437.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3456, allocations: 0 / 437.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3456, allocations: 3.984 kB / 437.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003171/0.3488, allocations: 2.189 MB / 440 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.572e-05/0.3489, allocations: 71.98 kB / 440.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004755/0.3494, allocations: 107 kB / 440.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.3494, allocations: 4 kB / 440.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.507e-05/0.3495, allocations: 35.98 kB / 440.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.3495, allocations: 3.938 kB / 440.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3495, allocations: 4 kB / 440.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002262/0.3517, allocations: 1.394 MB / 441.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006932/0.3524, allocations: 492.8 kB / 442.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002736/0.3527, allocations: 8 kB / 442.1 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006883/0.3534, allocations: 47.02 kB / 442.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.3536, allocations: 62.09 kB / 442.3 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.93e-05/0.3537, allocations: 39.98 kB / 442.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002583/0.3563, allocations: 2.019 MB / 444.3 MB, free: 6.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3563, allocations: 0 / 444.3 MB, free: 6.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001296/0.3576, allocations: 0.5972 MB / 444.9 MB, free: 5.879 MB / 350.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.003419/0.361, allocations: 2.621 MB / 447.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.3625, allocations: 0.8469 MB / 448.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3625, allocations: 4.062 kB / 448.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007532/0.3633, allocations: 475.9 kB / 448.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/0.3655, allocations: 0.4993 MB / 449.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04168/0.4072, allocations: 23.24 MB / 472.6 MB, free: 8.168 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.4082, allocations: 1.719 MB / 474.3 MB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001259/0.4095, allocations: 367.7 kB / 474.7 MB, free: 6.059 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/0.4107, allocations: 1.271 MB / 475.9 MB, free: 4.789 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4107, allocations: 0 / 475.9 MB, free: 4.789 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08568/0.4964, allocations: 60.81 MB / 0.5242 GB, free: 8.004 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.4966, allocations: 212.5 kB / 0.5244 GB, free: 7.746 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.402/3.899, allocations: 0 / 0.5244 GB, free: 7.746 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches