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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 112.1 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 207.6 MB / 235.3 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 60.39 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2616, allocations: 49.16 MB / 396.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01209/0.2737, allocations: 14.67 MB / 411 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02909/0.3028, allocations: 19.87 MB / 430.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00355/0.3064, allocations: 141.5 kB / 431 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004803/0.3112, allocations: 1.239 MB / 432.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.3219, allocations: 2.382 MB / 434.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005429/0.3274, allocations: 1.403 MB / 436 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01154/0.3389, allocations: 6.508 MB / 442.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006891/0.3396, allocations: 274.3 kB / 442.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.3414, allocations: 1.077 MB / 443.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.3429, allocations: 1.122 MB / 445 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001843/0.3431, allocations: 79.94 kB / 445.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00386/0.3469, allocations: 1.156 MB / 446.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003936/0.3473, allocations: 337.5 kB / 446.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001645/0.349, allocations: 1.44 MB / 448 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006352/0.3553, allocations: 4.032 MB / 452.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3553, allocations: 0 / 452.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3553, allocations: 0 / 452.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.461e-05/0.3554, allocations: 3.938 kB / 452.1 MB, free: 11.39 MB / 366.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.006082/0.3615, allocations: 3.906 MB / 456 MB, free: 7.426 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.3615, allocations: 11.98 kB / 456 MB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.3617, allocations: 106.5 kB / 456.1 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005238/0.3622, allocations: 437.2 kB / 456.5 MB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003929/0.3661, allocations: 2.369 MB / 458.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.3662, allocations: 37 kB / 458.9 MB, free: 4.375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.3663, allocations: 55.95 kB / 459 MB, free: 4.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.3677, allocations: 0.7343 MB / 459.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.3677, allocations: 3.984 kB / 459.7 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-05/0.3678, allocations: 20 kB / 459.7 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.3678, allocations: 23.98 kB / 459.8 MB, free: 3.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.3695, allocations: 0.8241 MB / 460.6 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005804/0.3753, allocations: 3.059 MB / 463.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.3766, allocations: 0.5172 MB / 464.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001028/0.3776, allocations: 0.5778 MB / 464.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02771/0.4053, allocations: 13.81 MB / 478.5 MB, free: 288 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008412/0.4061, allocations: 365.6 kB / 478.9 MB, free: 15.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.4061, allocations: 0 / 478.9 MB, free: 15.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002549/0.4087, allocations: 1.134 MB / 480 MB, free: 14.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.4088, allocations: 63.39 kB / 480.1 MB, free: 14.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00423/0.413, allocations: 3.104 MB / 483.2 MB, free: 11.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.969e-05/0.4131, allocations: 37.7 kB / 483.2 MB, free: 11.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001528/0.4146, allocations: 1.582 MB / 484.8 MB, free: 9.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.4148, allocations: 174.6 kB / 485 MB, free: 9.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003311/0.4151, allocations: 238.4 kB / 485.2 MB, free: 9.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.4153, allocations: 334 kB / 485.5 MB, free: 9.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006132/0.4159, allocations: 241.8 kB / 485.8 MB, free: 8.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009191/0.4168, allocations: 0.6134 MB / 486.4 MB, free: 8.191 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.4183, allocations: 0.8974 MB / 487.3 MB, free: 7.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.4184, allocations: 7.938 kB / 487.3 MB, free: 7.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002481/0.4208, allocations: 1.262 MB / 488.6 MB, free: 5.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.4209, allocations: 12 kB / 488.6 MB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001225/0.421, allocations: 80 kB / 488.6 MB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.604e-05/0.421, allocations: 19.98 kB / 488.7 MB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008069/0.4218, allocations: 200 kB / 488.9 MB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.98e-05/0.4219, allocations: 27.92 kB / 488.9 MB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.4229, allocations: 107.3 kB / 489 MB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.423, allocations: 67.98 kB / 489.1 MB, free: 5.336 MB / 398.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.0008751/0.4239, allocations: 457.4 kB / 489.5 MB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004669/0.4244, allocations: 421.3 kB / 489.9 MB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002732/0.4271, allocations: 1.223 MB / 491.1 MB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.4271, allocations: 4 kB / 491.1 MB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.4271, allocations: 0 / 491.1 MB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.4271, allocations: 11.98 kB / 491.2 MB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00379/0.4309, allocations: 2.123 MB / 493.3 MB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001103/0.431, allocations: 72 kB / 493.4 MB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004894/0.4315, allocations: 91.84 kB / 493.4 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.4315, allocations: 0 / 493.4 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.713e-05/0.4316, allocations: 39.98 kB / 493.5 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.4316, allocations: 0 / 493.5 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4316, allocations: 4.062 kB / 493.5 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002505/0.4341, allocations: 1.344 MB / 494.8 MB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.4351, allocations: 443 kB / 495.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004215/0.4355, allocations: 12 kB / 495.3 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007406/0.4363, allocations: 27.95 kB / 495.3 MB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.4364, allocations: 67.94 kB / 495.4 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.86e-05/0.4365, allocations: 39.98 kB / 495.4 MB, free: 14.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003401/0.4399, allocations: 2.019 MB / 497.4 MB, free: 12.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4399, allocations: 0 / 497.4 MB, free: 12.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001557/0.4415, allocations: 0.6008 MB / 498 MB, free: 12.27 MB / 414.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.004078/0.4456, allocations: 2.585 MB / 0.4889 GB, free: 9.645 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001708/0.4473, allocations: 0.7788 MB / 0.4896 GB, free: 8.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4473, allocations: 4.062 kB / 0.4896 GB, free: 8.836 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008065/0.4481, allocations: 419 kB / 0.49 GB, free: 8.402 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.4502, allocations: 0.5384 MB / 0.4906 GB, free: 7.859 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02832/0.4785, allocations: 17.17 MB / 0.5073 GB, free: 6.168 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/0.4801, allocations: 1.718 MB / 0.509 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.4812, allocations: 361.4 kB / 0.5094 GB, free: 4.062 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001509/0.4827, allocations: 1.276 MB / 0.5106 GB, free: 2.785 MB / 430.1 MB Notification: Performance of SimCode: time 1.723e-06/0.4827, allocations: 0 / 0.5106 GB, free: 2.785 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3089/0.7916, allocations: 64.18 MB / 0.5733 GB, free: 150.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.38/20.17, allocations: 8.062 kB / 0.5733 GB, free: 150.5 MB / 478.1 MB " [Timeout remaining time 640] (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 --stepSize=0.0009996 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.485891313990578]