Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_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.001325/0.001325, allocations: 113.8 kB / 17.06 MB, free: 6.012 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.001382/0.001382, allocations: 189.4 kB / 18 MB, free: 5.098 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.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 47.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2852, allocations: 49.43 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01682/0.3021, allocations: 15.31 MB / 415.5 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02788/0.33, allocations: 20.75 MB / 436.3 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002637/0.3327, allocations: 91.25 kB / 436.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003999/0.3368, allocations: 1.255 MB / 437.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008413/0.3452, allocations: 2.351 MB / 440 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00628/0.3515, allocations: 1.432 MB / 441.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01195/0.3635, allocations: 6.609 MB / 448 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009669/0.3645, allocations: 469.5 kB / 448.5 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001823/0.3663, allocations: 1.12 MB / 449.6 MB, free: 7.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001618/0.368, allocations: 1.141 MB / 450.7 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002391/0.3682, allocations: 76 kB / 450.8 MB, free: 6.008 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004515/0.3728, allocations: 1.479 MB / 452.3 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005563/0.3733, allocations: 337.5 kB / 452.6 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002128/0.3755, allocations: 1.424 MB / 454 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007231/0.3827, allocations: 4.001 MB / 458 MB, free: 14.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.302e-05/0.3828, allocations: 4 kB / 458.1 MB, free: 14.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3828, allocations: 0 / 458.1 MB, free: 14.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001266/0.3829, allocations: 0 / 458.1 MB, free: 14.74 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006555/0.3895, allocations: 3.968 MB / 462 MB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.3896, allocations: 11.89 kB / 462 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.3897, allocations: 102.5 kB / 462.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005702/0.3903, allocations: 433.2 kB / 462.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003826/0.3941, allocations: 2.503 MB / 465.1 MB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/0.3942, allocations: 44.92 kB / 465.1 MB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3943, allocations: 59.94 kB / 465.2 MB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.3958, allocations: 0.7265 MB / 465.9 MB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3959, allocations: 0 / 465.9 MB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.222e-05/0.3959, allocations: 20 kB / 465.9 MB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.224e-05/0.396, allocations: 19.98 kB / 465.9 MB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001685/0.3977, allocations: 0.8163 MB / 466.7 MB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005638/0.4033, allocations: 3.091 MB / 469.8 MB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.4047, allocations: 0.5829 MB / 470.4 MB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.4058, allocations: 0.6523 MB / 471.1 MB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03398/0.4398, allocations: 30.14 MB / 0.4895 GB, free: 15.22 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008545/0.4407, allocations: 365.7 kB / 0.4898 GB, free: 14.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.727e-06/0.4408, allocations: 3.938 kB / 0.4898 GB, free: 14.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002743/0.4435, allocations: 1.122 MB / 0.4909 GB, free: 13.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.4436, allocations: 67.39 kB / 0.491 GB, free: 13.64 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005022/0.4486, allocations: 3.083 MB / 0.494 GB, free: 10.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.329e-05/0.4487, allocations: 37.7 kB / 0.494 GB, free: 10.51 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001756/0.4505, allocations: 1.582 MB / 0.4956 GB, free: 8.922 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/0.4508, allocations: 174.6 kB / 0.4957 GB, free: 8.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004376/0.4513, allocations: 238.3 kB / 0.496 GB, free: 8.512 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.4514, allocations: 334 kB / 0.4963 GB, free: 8.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006953/0.4521, allocations: 245.8 kB / 0.4965 GB, free: 7.941 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009581/0.4531, allocations: 0.602 MB / 0.4971 GB, free: 7.164 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.4548, allocations: 0.9012 MB / 0.498 GB, free: 6.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.4548, allocations: 7.938 kB / 0.498 GB, free: 6.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00261/0.4575, allocations: 1.258 MB / 0.4992 GB, free: 4.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.4575, allocations: 12 kB / 0.4992 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000126/0.4576, allocations: 80 kB / 0.4993 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.66e-05/0.4577, allocations: 16.81 kB / 0.4993 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007552/0.4584, allocations: 207.6 kB / 0.4995 GB, free: 4.512 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.34e-05/0.4585, allocations: 27.86 kB / 0.4995 GB, free: 4.484 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.4596, allocations: 107.3 kB / 0.4996 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.4598, allocations: 64 kB / 0.4997 GB, free: 4.316 MB / 430.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.0008877/0.4607, allocations: 461.5 kB / 0.5001 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007069/0.4614, allocations: 413.4 kB / 0.5005 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00311/0.4645, allocations: 1.219 MB / 0.5017 GB, free: 2.211 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.4645, allocations: 7.984 kB / 0.5017 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4645, allocations: 0 / 0.5017 GB, free: 2.203 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4646, allocations: 4 kB / 0.5017 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004578/0.4691, allocations: 2.139 MB / 0.5038 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000105/0.4693, allocations: 79.88 kB / 0.5039 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005349/0.4698, allocations: 91.86 kB / 0.504 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.4698, allocations: 0 / 0.504 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-05/0.4699, allocations: 28 kB / 0.504 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.4699, allocations: 7.984 kB / 0.504 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4699, allocations: 4.062 kB / 0.504 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.4727, allocations: 1.339 MB / 0.5053 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009261/0.4736, allocations: 0.5099 MB / 0.5058 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004801/0.4741, allocations: 12 kB / 0.5058 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000873/0.475, allocations: 31.95 kB / 0.5059 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.4752, allocations: 63.95 kB / 0.5059 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-05/0.4753, allocations: 40 kB / 0.506 GB, free: 13.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003486/0.4788, allocations: 2.007 MB / 0.5079 GB, free: 11.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4788, allocations: 0 / 0.5079 GB, free: 11.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001699/0.4805, allocations: 0.6008 MB / 0.5085 GB, free: 11.14 MB / 446.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.004351/0.4849, allocations: 2.566 MB / 0.511 GB, free: 8.547 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.4867, allocations: 0.8096 MB / 0.5118 GB, free: 7.711 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.4867, allocations: 4.375 kB / 0.5118 GB, free: 7.707 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008614/0.4876, allocations: 439 kB / 0.5122 GB, free: 7.254 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/0.4909, allocations: 0.6396 MB / 0.5129 GB, free: 6.609 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03123/0.5221, allocations: 17.06 MB / 0.5295 GB, free: 5.035 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001912/0.5241, allocations: 1.71 MB / 0.5312 GB, free: 3.297 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001387/0.5255, allocations: 357.3 kB / 0.5315 GB, free: 2.941 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001712/0.5272, allocations: 1.265 MB / 0.5328 GB, free: 1.676 MB / 462.1 MB Notification: Performance of SimCode: time 1.262e-06/0.5273, allocations: 0 / 0.5328 GB, free: 1.676 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3345/0.8618, allocations: 62.87 MB / 0.5942 GB, free: 84.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.23/17.1, allocations: 15.55 kB / 0.5942 GB, free: 84.18 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches