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.001041/0.001041, allocations: 108.7 kB / 16.51 MB, free: 6.707 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.001078/0.001079, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.367/1.367, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 51.08 kB / 300.1 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0967/0.09825, allocations: 49.44 MB / 349.5 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01441/0.1127, allocations: 15.16 MB / 364.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1955/0.3082, allocations: 20.94 MB / 385.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002402/0.3106, allocations: 31.78 kB / 385.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003624/0.3143, allocations: 1.11 MB / 386.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00849/0.3228, allocations: 1.962 MB / 388.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00608/0.3289, allocations: 1.203 MB / 389.9 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.3415, allocations: 6.493 MB / 396.4 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008427/0.3424, allocations: 443.5 kB / 396.8 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002043/0.3445, allocations: 1.082 MB / 397.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001784/0.3463, allocations: 1.127 MB / 399 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002552/0.3465, allocations: 49.5 kB / 399.1 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005342/0.3519, allocations: 1.455 MB / 400.5 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004927/0.3524, allocations: 315.5 kB / 400.9 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002847/0.3552, allocations: 1.406 MB / 402.3 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006878/0.3621, allocations: 3.884 MB / 406.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3622, allocations: 0 / 406.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3622, allocations: 0 / 406.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001047/0.3623, allocations: 4 kB / 406.1 MB, free: 12.49 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.005563/0.3679, allocations: 3.819 MB / 410 MB, free: 8.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.3679, allocations: 12.02 kB / 410 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.368, allocations: 94.52 kB / 410.1 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000459/0.3685, allocations: 414.9 kB / 410.5 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003294/0.3718, allocations: 2.491 MB / 413 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.3719, allocations: 37 kB / 413 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.372, allocations: 51.91 kB / 413.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.3733, allocations: 0.7304 MB / 413.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3733, allocations: 0 / 413.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.081e-05/0.3734, allocations: 23.98 kB / 413.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.3734, allocations: 20 kB / 413.8 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.375, allocations: 0.8241 MB / 414.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005166/0.3801, allocations: 3.107 MB / 417.8 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.3813, allocations: 0.5674 MB / 418.3 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009686/0.3823, allocations: 0.6485 MB / 419 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02739/0.4097, allocations: 30.14 MB / 449.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007312/0.4105, allocations: 373.4 kB / 449.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.175e-06/0.4105, allocations: 0 / 449.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002322/0.4128, allocations: 1.104 MB / 450.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.4129, allocations: 59.41 kB / 450.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004211/0.4171, allocations: 3.098 MB / 453.7 MB, free: 8.484 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.073e-05/0.4172, allocations: 33.7 kB / 453.8 MB, free: 8.445 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.4185, allocations: 1.569 MB / 455.3 MB, free: 6.867 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.4187, allocations: 173.7 kB / 455.5 MB, free: 6.695 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.419, allocations: 230 kB / 455.7 MB, free: 6.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.4191, allocations: 337.9 kB / 456.1 MB, free: 6.129 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005722/0.4197, allocations: 249.8 kB / 456.3 MB, free: 5.887 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007888/0.4205, allocations: 0.5942 MB / 456.9 MB, free: 5.121 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.422, allocations: 0.8974 MB / 457.8 MB, free: 4.055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.422, allocations: 7.938 kB / 457.8 MB, free: 4.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002338/0.4244, allocations: 1.245 MB / 459.1 MB, free: 2.797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.4244, allocations: 14.75 kB / 459.1 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001063/0.4245, allocations: 80.09 kB / 459.1 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/0.4246, allocations: 24 kB / 459.2 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006977/0.4253, allocations: 203.6 kB / 459.4 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.56e-05/0.4253, allocations: 23.92 kB / 459.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.4265, allocations: 103.1 kB / 459.5 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.4266, allocations: 64 kB / 459.6 MB, free: 2.297 MB / 366.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.0008935/0.4275, allocations: 465.1 kB / 460 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005392/0.4281, allocations: 399.1 kB / 460.4 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003073/0.4312, allocations: 1.211 MB / 461.6 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.4312, allocations: 8 kB / 461.6 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4312, allocations: 11.86 kB / 461.6 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4312, allocations: 4 kB / 461.6 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003798/0.435, allocations: 2.143 MB / 463.8 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.173e-05/0.4351, allocations: 71.98 kB / 463.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004845/0.4356, allocations: 91.86 kB / 463.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.4356, allocations: 4 kB / 463.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.876e-05/0.4357, allocations: 32.06 kB / 464 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.4357, allocations: 4 kB / 464 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4357, allocations: 0 / 464 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.4381, allocations: 1.317 MB / 465.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000853/0.439, allocations: 492.1 kB / 465.8 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/0.4395, allocations: 12 kB / 465.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008014/0.4403, allocations: 32.03 kB / 465.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.4405, allocations: 63.88 kB / 465.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-05/0.4405, allocations: 39.98 kB / 465.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002998/0.4435, allocations: 2.003 MB / 467.9 MB, free: 9.785 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4436, allocations: 0 / 467.9 MB, free: 9.785 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001447/0.445, allocations: 0.5972 MB / 468.5 MB, free: 9.188 MB / 382.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.003799/0.4488, allocations: 2.548 MB / 471.1 MB, free: 6.605 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.4505, allocations: 0.8176 MB / 471.9 MB, free: 5.758 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4505, allocations: 0 / 471.9 MB, free: 5.758 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007777/0.4513, allocations: 443 kB / 472.3 MB, free: 5.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.4541, allocations: 0.5979 MB / 472.9 MB, free: 4.699 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04713/0.5012, allocations: 22.87 MB / 495.8 MB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/0.5025, allocations: 1.71 MB / 497.5 MB, free: 9.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001366/0.5039, allocations: 361.3 kB / 497.8 MB, free: 9.438 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/0.5051, allocations: 1.265 MB / 499.1 MB, free: 8.172 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5051, allocations: 0 / 499.1 MB, free: 8.172 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2488/0.7539, allocations: 60.85 MB / 0.5468 GB, free: 146.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/0.7541, allocations: 217.3 kB / 0.547 GB, free: 146.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.607/4.361, allocations: 0 / 0.547 GB, free: 146.5 MB / 446.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