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.001065/0.001065, allocations: 106.6 kB / 17.58 MB, free: 5.441 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.001094/0.001094, allocations: 191.9 kB / 18.51 MB, free: 4.523 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.377/1.377, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001182/0.001182, allocations: 52.14 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08722/0.08841, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01483/0.1033, allocations: 14.6 MB / 342 MB, free: 5.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0284/0.1317, allocations: 19.8 MB / 361.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003045/0.1348, allocations: 31.81 kB / 361.8 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003684/0.1386, allocations: 1.232 MB / 363 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008594/0.1472, allocations: 2.308 MB / 365.3 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004377/0.1516, allocations: 1.385 MB / 366.7 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01036/0.162, allocations: 6.445 MB / 373.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009609/0.163, allocations: 473.6 kB / 373.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001919/0.1649, allocations: 0.9989 MB / 374.6 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.1663, allocations: 1.122 MB / 375.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002078/0.1665, allocations: 76 kB / 375.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004806/0.1713, allocations: 1.163 MB / 377 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003809/0.1717, allocations: 341.5 kB / 377.3 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001571/0.1733, allocations: 1.444 MB / 378.8 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1701/0.3434, allocations: 3.963 MB / 382.7 MB, free: 19.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3435, allocations: 3.766 kB / 382.7 MB, free: 19.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3435, allocations: 1.594 kB / 382.7 MB, free: 19.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001088/0.3436, allocations: 0 / 382.7 MB, free: 19.37 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.008585/0.3522, allocations: 3.859 MB / 386.6 MB, free: 17.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.879e-05/0.3523, allocations: 10.17 kB / 386.6 MB, free: 17.19 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002125/0.3525, allocations: 99.81 kB / 386.7 MB, free: 17.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001438/0.354, allocations: 414.2 kB / 387.1 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004552/0.3585, allocations: 2.506 MB / 389.6 MB, free: 16.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.051e-05/0.3586, allocations: 34.91 kB / 389.7 MB, free: 16.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.3588, allocations: 58.97 kB / 389.7 MB, free: 16.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.3601, allocations: 0.7304 MB / 390.4 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3601, allocations: 0 / 390.4 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.228e-05/0.3602, allocations: 18.72 kB / 390.5 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.148e-05/0.3603, allocations: 19.66 kB / 390.5 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.3618, allocations: 0.8214 MB / 391.3 MB, free: 16.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005618/0.3674, allocations: 3.113 MB / 394.4 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.3685, allocations: 0.5765 MB / 395 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008795/0.3694, allocations: 0.6498 MB / 395.6 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02569/0.3951, allocations: 30.2 MB / 425.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007536/0.3959, allocations: 368.7 kB / 426.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.815e-06/0.3959, allocations: 0 / 426.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002643/0.3986, allocations: 1.111 MB / 427.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.3986, allocations: 62.5 kB / 427.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004092/0.4027, allocations: 3.111 MB / 430.5 MB, free: 1.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.098e-05/0.4028, allocations: 34.64 kB / 430.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.4042, allocations: 1.575 MB / 432.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.4044, allocations: 165.2 kB / 432.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003198/0.4047, allocations: 226.1 kB / 432.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4048, allocations: 341.9 kB / 432.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005941/0.4054, allocations: 246.8 kB / 433.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008084/0.4063, allocations: 0.6006 MB / 433.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.4078, allocations: 0.9004 MB / 434.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.4078, allocations: 4 kB / 434.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00247/0.4103, allocations: 1.248 MB / 435.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.4103, allocations: 16 kB / 435.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.4104, allocations: 80 kB / 435.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.646e-05/0.4104, allocations: 20 kB / 435.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006924/0.4111, allocations: 200.6 kB / 436.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.66e-05/0.4112, allocations: 28.66 kB / 436.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.4126, allocations: 107 kB / 436.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.4127, allocations: 68 kB / 436.3 MB, free: 11.48 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.0008009/0.4135, allocations: 457.8 kB / 436.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004404/0.414, allocations: 399.1 kB / 437.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003061/0.417, allocations: 1.217 MB / 438.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.4171, allocations: 4 kB / 438.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4171, allocations: 0 / 438.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.4171, allocations: 3.188 kB / 438.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003835/0.4209, allocations: 2.155 MB / 440.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.684e-05/0.421, allocations: 69.86 kB / 440.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000497/0.4215, allocations: 94.89 kB / 440.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.475e-06/0.4216, allocations: 5.078 kB / 440.7 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.316e-05/0.4216, allocations: 35.98 kB / 440.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/0.4216, allocations: 4 kB / 440.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4217, allocations: 2.906 kB / 440.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.424, allocations: 1.326 MB / 442.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008876/0.4249, allocations: 496 kB / 442.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000435/0.4253, allocations: 11.98 kB / 442.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000784/0.4261, allocations: 27.97 kB / 442.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.4263, allocations: 63.7 kB / 442.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.989e-05/0.4264, allocations: 43.92 kB / 442.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002673/0.4291, allocations: 2.023 MB / 444.7 MB, free: 3.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4291, allocations: 0.875 kB / 444.7 MB, free: 3.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00142/0.4305, allocations: 0.5973 MB / 445.3 MB, free: 2.41 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.003669/0.4342, allocations: 2.56 MB / 447.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.436, allocations: 0.8329 MB / 448.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.436, allocations: 0 / 448.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007984/0.4368, allocations: 451.2 kB / 449.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002309/0.4391, allocations: 0.5333 MB / 449.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02907/0.4682, allocations: 22.3 MB / 472 MB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/0.4699, allocations: 1.714 MB / 473.7 MB, free: 3.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001564/0.4714, allocations: 369.4 kB / 474.1 MB, free: 3.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/0.4729, allocations: 1.269 MB / 475.3 MB, free: 2.34 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4729, allocations: 0 / 475.3 MB, free: 2.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/0.5807, allocations: 62.58 MB / 0.5253 GB, free: 3.695 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.224/9.805, allocations: 7.688 kB / 0.5253 GB, free: 3.688 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches