Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.001548/0.001548, allocations: 106.4 kB / 16.92 MB, free: 5.855 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.001681/0.001682, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.307/1.307, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 46.92 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.09296, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0144/0.1074, allocations: 14.7 MB / 364.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1838/0.2913, allocations: 20.69 MB / 385.5 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002079/0.2934, allocations: 30.5 kB / 385.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003236/0.2966, allocations: 1.223 MB / 386.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009927/0.3066, allocations: 2.299 MB / 389.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007081/0.3137, allocations: 1.444 MB / 390.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.3249, allocations: 6.462 MB / 397 MB, free: 2.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000746/0.3256, allocations: 462.1 kB / 397.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001807/0.3275, allocations: 1.064 MB / 398.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001981/0.3295, allocations: 1.106 MB / 399.6 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002821/0.3298, allocations: 81.94 kB / 399.7 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005141/0.3349, allocations: 1.473 MB / 401.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003581/0.3353, allocations: 338.1 kB / 401.5 MB, free: 396 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001827/0.3371, allocations: 1.371 MB / 402.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005399/0.3425, allocations: 3.735 MB / 406.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3426, allocations: 0 / 406.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3426, allocations: 0 / 406.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.705e-05/0.3426, allocations: 0 / 406.6 MB, free: 12.27 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.005982/0.3486, allocations: 3.687 MB / 410.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.705e-05/0.3487, allocations: 12.03 kB / 410.3 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/0.3489, allocations: 98.5 kB / 410.4 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005808/0.3494, allocations: 399.2 kB / 410.8 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00365/0.3531, allocations: 2.425 MB / 413.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.679e-05/0.3532, allocations: 44.98 kB / 413.3 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.3533, allocations: 56.78 kB / 413.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.3549, allocations: 0.7304 MB / 414.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.3549, allocations: 0 / 414.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.039e-05/0.355, allocations: 16 kB / 414.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.663e-05/0.355, allocations: 23.98 kB / 414.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.3566, allocations: 0.8124 MB / 414.9 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005383/0.3619, allocations: 3.055 MB / 418 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.3632, allocations: 0.579 MB / 418.5 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.3642, allocations: 0.6518 MB / 419.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02909/0.3933, allocations: 30.11 MB / 449.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008243/0.3942, allocations: 377.2 kB / 449.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.737e-06/0.3942, allocations: 0 / 449.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002705/0.3969, allocations: 1.089 MB / 450.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/0.397, allocations: 59.41 kB / 450.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/0.4017, allocations: 2.927 MB / 453.7 MB, free: 8.719 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.925e-05/0.4018, allocations: 45.62 kB / 453.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.4031, allocations: 1.482 MB / 455.3 MB, free: 7.176 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001916/0.4033, allocations: 165.7 kB / 455.4 MB, free: 7.012 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003311/0.4037, allocations: 234.1 kB / 455.7 MB, free: 6.777 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4038, allocations: 338 kB / 456 MB, free: 6.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006025/0.4044, allocations: 241.8 kB / 456.2 MB, free: 6.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008039/0.4052, allocations: 0.602 MB / 456.8 MB, free: 5.426 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.4068, allocations: 0.8974 MB / 457.7 MB, free: 4.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/0.4068, allocations: 4 kB / 457.7 MB, free: 4.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002387/0.4092, allocations: 1.229 MB / 459 MB, free: 3.117 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.4092, allocations: 14.75 kB / 459 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001186/0.4093, allocations: 80 kB / 459.1 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.172e-05/0.4094, allocations: 23.98 kB / 459.1 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007268/0.4101, allocations: 196.1 kB / 459.3 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.209e-05/0.4102, allocations: 31.86 kB / 459.3 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.4113, allocations: 111 kB / 459.4 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.4114, allocations: 67.98 kB / 459.5 MB, free: 2.605 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.000778/0.4122, allocations: 425.5 kB / 459.9 MB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005943/0.4128, allocations: 383.3 kB / 460.3 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00308/0.4158, allocations: 1.2 MB / 461.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.4159, allocations: 4 kB / 461.5 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.4159, allocations: 0 / 461.5 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.4159, allocations: 7.922 kB / 461.5 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00413/0.42, allocations: 2.089 MB / 463.6 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.275e-05/0.4201, allocations: 72.06 kB / 463.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004976/0.4207, allocations: 96.98 kB / 463.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.4207, allocations: 0 / 463.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.983e-05/0.4207, allocations: 35.98 kB / 463.8 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.4208, allocations: 4 kB / 463.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4208, allocations: 3.938 kB / 463.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.4232, allocations: 1.294 MB / 465.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008114/0.424, allocations: 480.2 kB / 465.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003948/0.4244, allocations: 12 kB / 465.5 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007429/0.4251, allocations: 28.83 kB / 465.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.4253, allocations: 59.95 kB / 465.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.468e-05/0.4254, allocations: 39.98 kB / 465.7 MB, free: 12.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002946/0.4283, allocations: 1.907 MB / 467.6 MB, free: 10.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4283, allocations: 0 / 467.6 MB, free: 10.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001768/0.4301, allocations: 0.5855 MB / 468.2 MB, free: 9.766 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.004124/0.4343, allocations: 2.53 MB / 470.7 MB, free: 7.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001976/0.4363, allocations: 0.8317 MB / 471.5 MB, free: 6.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.4363, allocations: 1.375 kB / 471.5 MB, free: 6.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008123/0.4371, allocations: 447 kB / 472 MB, free: 5.879 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00327/0.4404, allocations: 0.6228 MB / 472.6 MB, free: 5.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03009/0.4705, allocations: 20.99 MB / 493.6 MB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.4718, allocations: 1.661 MB / 495.2 MB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001413/0.4732, allocations: 361.1 kB / 495.6 MB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001284/0.4745, allocations: 1.218 MB / 496.8 MB, free: 10.84 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4745, allocations: 0 / 496.8 MB, free: 10.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2705/0.745, allocations: 60.15 MB / 0.5439 GB, free: 146.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.214/9.959, allocations: 12.17 kB / 0.5439 GB, free: 146.9 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches