Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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.0008065/0.0008065, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003464/0.003464, allocations: 161.6 kB / 24.69 MB, free: 9.414 MB / 18.57 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 0.9103/0.9103, allocations: 158.6 MB / 186.5 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] 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.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.143e-05/3.366e-05, allocations: 2.281 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1559/0.1559, allocations: 21.08 MB / 319.5 MB, free: 2.871 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0233/0.1792, allocations: 18.66 MB / 338.2 MB, free: 5.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005379/0.1846, allocations: 272.7 kB / 338.4 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004631/0.1892, allocations: 1.638 MB / 340.1 MB, free: 3.867 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01265/0.2019, allocations: 3.377 MB / 343.5 MB, free: 1.086 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005711/0.2076, allocations: 1.572 MB / 345 MB, free: 15.86 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01452/0.2221, allocations: 12.82 MB / 357.8 MB, free: 3.168 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.2234, allocations: 0.4888 MB / 358.3 MB, free: 2.645 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003975/0.2274, allocations: 2.716 MB / 361.1 MB, free: 15.92 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.2289, allocations: 1.448 MB / 362.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003648/0.2293, allocations: 140 kB / 362.6 MB, free: 14.33 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002986/0.2323, allocations: 1.152 MB / 363.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003639/0.2326, allocations: 0.6087 MB / 364.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001811/0.2345, allocations: 1.413 MB / 365.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00791/0.2424, allocations: 6.538 MB / 372.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.2424, allocations: 7.922 kB / 372.4 MB, free: 4.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2424, allocations: 0 / 372.4 MB, free: 4.578 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002821/0.2427, allocations: 0 / 372.4 MB, free: 4.578 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.007663/0.2503, allocations: 6.824 MB / 379.2 MB, free: 13.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.2504, allocations: 13.58 kB / 379.2 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001515/0.2505, allocations: 161.2 kB / 379.4 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007023/0.2512, allocations: 0.7839 MB / 380.1 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005032/0.2563, allocations: 4.415 MB / 384.6 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.2563, allocations: 69.98 kB / 384.6 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.2564, allocations: 95.95 kB / 384.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.258, allocations: 1.309 MB / 386 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.258, allocations: 0 / 386 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.612e-05/0.2581, allocations: 36 kB / 386.1 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.708e-05/0.2581, allocations: 43.97 kB / 386.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.2597, allocations: 1.484 MB / 387.6 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007006/0.2667, allocations: 5.305 MB / 392.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.2678, allocations: 0.8841 MB / 393.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.2688, allocations: 1.056 MB / 394.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0302/0.299, allocations: 27.11 MB / 421.9 MB, free: 1.922 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006809/0.2997, allocations: 0.558 MB / 422.5 MB, free: 1.355 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.876e-06/0.2997, allocations: 0 / 422.5 MB, free: 1.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.002521/0.3022, allocations: 1.915 MB / 424.4 MB, free: 15.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.3022, allocations: 68.06 kB / 424.5 MB, free: 15.35 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004886/0.3071, allocations: 5.663 MB / 430.1 MB, free: 9.719 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.3072, allocations: 45.64 kB / 430.2 MB, free: 9.668 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001981/0.3092, allocations: 2.949 MB / 433.1 MB, free: 6.707 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.3094, allocations: 313.4 kB / 433.4 MB, free: 6.398 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003618/0.3098, allocations: 419 kB / 433.8 MB, free: 5.984 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.988e-05/0.3099, allocations: 304.9 kB / 434.1 MB, free: 5.688 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005499/0.3104, allocations: 403.8 kB / 434.5 MB, free: 5.293 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008298/0.3113, allocations: 1.095 MB / 435.6 MB, free: 3.867 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.3128, allocations: 1.615 MB / 437.3 MB, free: 1.914 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/0.3128, allocations: 4 kB / 437.3 MB, free: 1.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003049/0.3159, allocations: 2.245 MB / 439.5 MB, free: 15.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.3159, allocations: 17 kB / 439.5 MB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001318/0.316, allocations: 164 kB / 439.7 MB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.829e-05/0.3161, allocations: 40 kB / 439.7 MB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006486/0.3167, allocations: 358.8 kB / 440.1 MB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.372e-05/0.3168, allocations: 45.81 kB / 440.1 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.3181, allocations: 190.7 kB / 440.3 MB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/0.3183, allocations: 127.9 kB / 440.4 MB, free: 14.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001142/0.3194, allocations: 0.716 MB / 441.1 MB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005572/0.32, allocations: 0.7569 MB / 441.9 MB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002781/0.3227, allocations: 2.169 MB / 444.1 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3228, allocations: 8 kB / 444.1 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3228, allocations: 0 / 444.1 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3228, allocations: 3.984 kB / 444.1 MB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00453/0.3273, allocations: 3.514 MB / 447.6 MB, free: 7.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001156/0.3274, allocations: 144 kB / 447.7 MB, free: 7.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004491/0.3279, allocations: 151.8 kB / 447.9 MB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.3279, allocations: 4 kB / 447.9 MB, free: 7.188 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.69e-05/0.3279, allocations: 63.98 kB / 447.9 MB, free: 7.125 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.328, allocations: 3.938 kB / 447.9 MB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.328, allocations: 4 kB / 448 MB, free: 7.117 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.3303, allocations: 2.19 MB / 450.1 MB, free: 4.902 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/0.3315, allocations: 0.7859 MB / 450.9 MB, free: 4.105 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003439/0.3319, allocations: 15.98 kB / 450.9 MB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000617/0.3325, allocations: 43.84 kB / 451 MB, free: 4.047 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.3326, allocations: 104.5 kB / 451.1 MB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.866e-05/0.3327, allocations: 68 kB / 451.2 MB, free: 3.879 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004901/0.3376, allocations: 3.629 MB / 454.8 MB, free: 288 kB / 410.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3376, allocations: 0 / 454.8 MB, free: 288 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.002537/0.3402, allocations: 1.092 MB / 455.9 MB, free: 15.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.004377/0.3446, allocations: 3.956 MB / 459.8 MB, free: 11.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.3464, allocations: 1.37 MB / 461.2 MB, free: 9.773 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3464, allocations: 0 / 461.2 MB, free: 9.773 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007196/0.3471, allocations: 0.7365 MB / 461.9 MB, free: 8.992 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003129/0.3503, allocations: 0.9909 MB / 462.9 MB, free: 8.004 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1751/0.5253, allocations: 30.62 MB / 493.5 MB, free: 133.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001214/0.5266, allocations: 2.119 MB / 495.7 MB, free: 133.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001336/0.5279, allocations: 0.6865 MB / 496.4 MB, free: 133.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.5292, allocations: 2.413 MB / 498.8 MB, free: 131.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.885e-06/0.5292, allocations: 3.969 kB / 498.8 MB, free: 131.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1178/0.647, allocations: 117.6 MB / 0.6019 GB, free: 13.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/14.17, allocations: 7.969 kB / 0.6019 GB, free: 13.29 MB / 426.7 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 16.85892741754651]