Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001448/0.001448, allocations: 121.4 kB / 19.17 MB, free: 3.898 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.001594/0.001594, allocations: 203.9 kB / 22.12 MB, free: 0.9609 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.509/1.509, allocations: 207.6 MB / 232.5 MB, free: 3.961 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.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.00176/0.00176, allocations: 51.92 kB / 343 MB, free: 10.01 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1053, allocations: 49.13 MB / 392.1 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01721/0.1225, allocations: 14.08 MB / 406.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02488/0.1474, allocations: 19.79 MB / 426 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003065/0.1505, allocations: 142.4 kB / 426.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003527/0.154, allocations: 1.209 MB / 427.3 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008891/0.1629, allocations: 2.281 MB / 429.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005658/0.1686, allocations: 1.396 MB / 431 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01344/0.182, allocations: 6.368 MB / 437.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009003/0.1829, allocations: 273.2 kB / 437.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002333/0.1852, allocations: 1.05 MB / 438.7 MB, free: 9.906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001461/0.1867, allocations: 1.083 MB / 439.8 MB, free: 8.816 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.1869, allocations: 72 kB / 439.8 MB, free: 8.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005046/0.1919, allocations: 1.159 MB / 441 MB, free: 7.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000487/0.1924, allocations: 337.5 kB / 441.3 MB, free: 7.258 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001951/0.1944, allocations: 1.382 MB / 442.7 MB, free: 5.867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008528/0.2029, allocations: 3.807 MB / 446.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.249e-05/0.2029, allocations: 3.984 kB / 446.5 MB, free: 2.039 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.2029, allocations: 0 / 446.5 MB, free: 2.039 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000117/0.203, allocations: 0 / 446.5 MB, free: 2.039 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.006819/0.2098, allocations: 3.829 MB / 450.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.2099, allocations: 12.03 kB / 450.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.635e-05/0.2099, allocations: 13 kB / 450.4 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.21, allocations: 98.5 kB / 450.5 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004721/0.2105, allocations: 417.4 kB / 450.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003554/0.2141, allocations: 2.473 MB / 453.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.2141, allocations: 40.94 kB / 453.4 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.2142, allocations: 51.95 kB / 453.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.2157, allocations: 0.7304 MB / 454.2 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.2157, allocations: 0 / 454.2 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-05/0.2158, allocations: 24 kB / 454.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/0.2158, allocations: 23.92 kB / 454.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.2174, allocations: 0.8163 MB / 455 MB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005718/0.2231, allocations: 3.075 MB / 458.1 MB, free: 6.191 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.2244, allocations: 0.5127 MB / 458.6 MB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.2254, allocations: 0.5744 MB / 459.2 MB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.223/0.4484, allocations: 30.17 MB / 489.4 MB, free: 45.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006859/0.449, allocations: 358.5 kB / 489.7 MB, free: 45.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.449, allocations: 3.656 kB / 489.7 MB, free: 45.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001991/0.451, allocations: 1.115 MB / 490.8 MB, free: 45.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.4511, allocations: 65.23 kB / 490.9 MB, free: 45.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.4541, allocations: 2.951 MB / 493.9 MB, free: 43.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.431e-05/0.4541, allocations: 34.98 kB / 493.9 MB, free: 43.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007793/0.4549, allocations: 1.508 MB / 495.4 MB, free: 42.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.455, allocations: 173.7 kB / 495.6 MB, free: 42.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002494/0.4552, allocations: 235.5 kB / 495.8 MB, free: 42.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.688e-05/0.4553, allocations: 337.8 kB / 496.1 MB, free: 41.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004952/0.4558, allocations: 241.9 kB / 496.4 MB, free: 41.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000587/0.4564, allocations: 0.5985 MB / 497 MB, free: 41.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.4575, allocations: 0.9041 MB / 497.9 MB, free: 40.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.4575, allocations: 3.094 kB / 497.9 MB, free: 40.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001874/0.4594, allocations: 1.243 MB / 499.1 MB, free: 39.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.4594, allocations: 13.47 kB / 499.1 MB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.974e-05/0.4595, allocations: 80.09 kB / 499.2 MB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.4595, allocations: 23.53 kB / 499.2 MB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006419/0.4602, allocations: 200.9 kB / 499.4 MB, free: 39.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.162e-05/0.4602, allocations: 26.64 kB / 499.5 MB, free: 39.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008498/0.461, allocations: 117.1 kB / 499.6 MB, free: 39.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.547e-05/0.4611, allocations: 67.75 kB / 499.6 MB, free: 39.57 MB / 382.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.0005918/0.4617, allocations: 438.6 kB / 0.4883 GB, free: 39.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002647/0.462, allocations: 400.4 kB / 0.4887 GB, free: 39.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002234/0.4642, allocations: 1.205 MB / 0.4899 GB, free: 37.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.4642, allocations: 4 kB / 0.4899 GB, free: 37.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4642, allocations: 4 kB / 0.4899 GB, free: 37.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.4642, allocations: 3.984 kB / 0.4899 GB, free: 37.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002535/0.4668, allocations: 2.1 MB / 0.492 GB, free: 35.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.899e-05/0.4668, allocations: 68 kB / 0.492 GB, free: 35.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004455/0.4673, allocations: 95.84 kB / 0.4921 GB, free: 35.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.4673, allocations: 4 kB / 0.4921 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.768e-05/0.4673, allocations: 32 kB / 0.4922 GB, free: 35.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.4673, allocations: 64 / 0.4922 GB, free: 35.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4673, allocations: 8 kB / 0.4922 GB, free: 35.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.4691, allocations: 1.324 MB / 0.4935 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005108/0.4696, allocations: 0.4906 MB / 0.4939 GB, free: 33.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.4699, allocations: 11.98 kB / 0.4939 GB, free: 33.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/0.4705, allocations: 36.91 kB / 0.494 GB, free: 33.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.4706, allocations: 59.94 kB / 0.494 GB, free: 33.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.839e-05/0.4707, allocations: 36 kB / 0.4941 GB, free: 33.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001757/0.4725, allocations: 1.916 MB / 0.4959 GB, free: 31.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4725, allocations: 0 / 0.4959 GB, free: 31.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001233/0.4737, allocations: 0.593 MB / 0.4965 GB, free: 31.09 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.002971/0.4767, allocations: 2.57 MB / 0.499 GB, free: 28.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.4781, allocations: 0.775 MB / 0.4998 GB, free: 27.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4781, allocations: 4.125 kB / 0.4998 GB, free: 27.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006248/0.4787, allocations: 419.3 kB / 0.5002 GB, free: 27.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.4803, allocations: 0.5177 MB / 0.5007 GB, free: 26.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01783/0.4982, allocations: 16.56 MB / 0.5169 GB, free: 9.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007367/0.4989, allocations: 1.669 MB / 0.5185 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008796/0.4998, allocations: 359.8 kB / 0.5188 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008677/0.5007, allocations: 1.222 MB / 0.52 GB, free: 6.469 MB / 382.1 MB Notification: Performance of SimCode: time 1.513e-06/0.5007, allocations: 3.938 kB / 0.52 GB, free: 6.465 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1187/0.6193, allocations: 61.44 MB / 0.58 GB, free: 8.887 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.97/16.59, allocations: 19.98 kB / 0.5801 GB, free: 8.867 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: 20.600933384965174]