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.001948/0.001948, allocations: 114.7 kB / 19.17 MB, free: 3.891 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.002387/0.002387, allocations: 203.8 kB / 22.11 MB, free: 0.9531 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.516/1.516, allocations: 207.6 MB / 232.5 MB, free: 3.938 MB / 174.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.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",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.001952/0.001952, allocations: 51.92 kB / 343 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09716, allocations: 49.13 MB / 392.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02597/0.1231, allocations: 25.44 MB / 417.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03247/0.1556, allocations: 21.38 MB / 438.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005383/0.161, allocations: 280.9 kB / 439.2 MB, free: 9.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005404/0.1664, allocations: 1.734 MB / 441 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.1791, allocations: 3.196 MB / 444.1 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007775/0.1869, allocations: 1.572 MB / 445.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02249/0.2094, allocations: 12.45 MB / 458.2 MB, free: 6.375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/0.2109, allocations: 0.4962 MB / 458.7 MB, free: 5.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003344/0.2143, allocations: 1.999 MB / 460.7 MB, free: 3.836 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003401/0.2177, allocations: 2.053 MB / 462.7 MB, free: 1.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005332/0.2182, allocations: 136 kB / 462.9 MB, free: 1.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004515/0.2227, allocations: 1.23 MB / 464.1 MB, free: 416 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2186/0.4413, allocations: 0.5991 MB / 464.7 MB, free: 18.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00638/0.4477, allocations: 2.637 MB / 467.3 MB, free: 18.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01384/0.4616, allocations: 6.716 MB / 474 MB, free: 17.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4616, allocations: 0 / 474 MB, free: 17.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.4616, allocations: 0 / 474 MB, free: 17.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002618/0.4618, allocations: 1.219 kB / 474 MB, free: 17.2 MB / 382.1 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.0129/0.4747, allocations: 6.972 MB / 481 MB, free: 13.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.4748, allocations: 10.41 kB / 481 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.189e-05/0.4748, allocations: 26.25 kB / 481 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001948/0.475, allocations: 162.2 kB / 481.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.4765, allocations: 0.791 MB / 482 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007978/0.4845, allocations: 4.693 MB / 486.7 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.616e-05/0.4845, allocations: 66.66 kB / 486.7 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002507/0.4848, allocations: 99.83 kB / 486.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002403/0.4872, allocations: 1.301 MB / 488.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.4872, allocations: 0 / 488.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/0.4873, allocations: 38.09 kB / 488.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.246e-05/0.4874, allocations: 37.22 kB / 488.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002292/0.4897, allocations: 1.489 MB / 489.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01034/0.5, allocations: 5.65 MB / 495.4 MB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/0.5015, allocations: 0.8759 MB / 496.2 MB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/0.5028, allocations: 1.056 MB / 497.3 MB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06197/0.5647, allocations: 59.94 MB / 0.5442 GB, free: 9.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.5659, allocations: 0.5595 MB / 0.5447 GB, free: 8.836 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 4.127e-06/0.5659, allocations: 0 / 0.5447 GB, free: 8.836 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.004446/0.5703, allocations: 1.91 MB / 0.5466 GB, free: 6.922 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/0.5704, allocations: 63.95 kB / 0.5466 GB, free: 6.848 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008534/0.5789, allocations: 5.628 MB / 0.5521 GB, free: 1.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002569/0.5792, allocations: 41.69 kB / 0.5522 GB, free: 1.203 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002864/0.5821, allocations: 2.969 MB / 0.5551 GB, free: 14.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004297/0.5825, allocations: 319.9 kB / 0.5554 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006418/0.5831, allocations: 427 kB / 0.5558 GB, free: 13.55 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.5833, allocations: 301.1 kB / 0.5561 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009349/0.5842, allocations: 403.8 kB / 0.5565 GB, free: 12.86 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.5856, allocations: 1.087 MB / 0.5575 GB, free: 11.44 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002525/0.5882, allocations: 1.618 MB / 0.5591 GB, free: 9.602 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.5882, allocations: 4 kB / 0.5591 GB, free: 9.598 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004596/0.5928, allocations: 2.249 MB / 0.5613 GB, free: 7.488 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.5928, allocations: 16 kB / 0.5613 GB, free: 7.473 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002321/0.593, allocations: 165.7 kB / 0.5615 GB, free: 7.312 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.221e-05/0.5931, allocations: 36 kB / 0.5615 GB, free: 7.277 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.5943, allocations: 359.2 kB / 0.5618 GB, free: 6.953 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.386e-05/0.5943, allocations: 48.11 kB / 0.5619 GB, free: 6.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002751/0.5971, allocations: 190.7 kB / 0.5621 GB, free: 6.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002126/0.5973, allocations: 128 kB / 0.5622 GB, free: 6.605 MB / 462.1 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.001506/0.5988, allocations: 0.7228 MB / 0.5629 GB, free: 5.898 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/0.6001, allocations: 0.757 MB / 0.5636 GB, free: 5.137 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005054/0.6052, allocations: 2.165 MB / 0.5658 GB, free: 2.984 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.6052, allocations: 11.98 kB / 0.5658 GB, free: 2.973 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.6052, allocations: 0 / 0.5658 GB, free: 2.973 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.6052, allocations: 0 / 0.5658 GB, free: 2.973 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007634/0.6128, allocations: 3.637 MB / 0.5693 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000201/0.613, allocations: 144 kB / 0.5695 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007775/0.6138, allocations: 146.3 kB / 0.5696 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.6138, allocations: 0 / 0.5696 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/0.6139, allocations: 65.11 kB / 0.5697 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.989e-06/0.6139, allocations: 4 kB / 0.5697 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.614, allocations: 4.062 kB / 0.5697 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004615/0.6186, allocations: 2.196 MB / 0.5718 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004241/0.6228, allocations: 0.8631 MB / 0.5727 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002266/0.6251, allocations: 12 kB / 0.5727 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002118/0.6272, allocations: 35.95 kB / 0.5727 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002911/0.6275, allocations: 99.69 kB / 0.5728 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001893/0.6277, allocations: 79.67 kB / 0.5729 GB, free: 11.62 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006707/0.6344, allocations: 3.633 MB / 0.5764 GB, free: 8.023 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6344, allocations: 0 / 0.5764 GB, free: 8.023 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003682/0.6381, allocations: 1.092 MB / 0.5775 GB, free: 6.93 MB / 478.1 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.006028/0.6441, allocations: 3.858 MB / 0.5813 GB, free: 3.27 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002734/0.6468, allocations: 1.366 MB / 0.5826 GB, free: 1.934 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6468, allocations: 1.188 kB / 0.5826 GB, free: 1.934 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.648, allocations: 0.7409 MB / 0.5833 GB, free: 1.156 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005109/0.6531, allocations: 0.9935 MB / 0.5843 GB, free: 164 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05486/0.708, allocations: 30.75 MB / 0.6143 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002232/0.7102, allocations: 2.604 MB / 0.6169 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002183/0.7124, allocations: 0.685 MB / 0.6175 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002699/0.7151, allocations: 2.413 MB / 0.6199 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of SimCode: time 1.122e-06/0.7151, allocations: 4 kB / 0.6199 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3469/1.062, allocations: 112.1 MB / 0.7294 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.65/26.71, allocations: 19.14 kB / 0.7294 GB, free: 143.8 MB / 0.5294 GB " [Timeout remaining time 633] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 32.37204732000828]