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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 120.4 kB / 18.41 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002039/0.002039, allocations: 190.7 kB / 21.35 MB, free: 1.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 222.9 MB / 247 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 55.91 kB / 358.7 MB, free: 8.328 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.0882, allocations: 49.44 MB / 408.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01361/0.1018, allocations: 14.71 MB / 422.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1985/0.3004, allocations: 20.67 MB / 443.5 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002342/0.3027, allocations: 87.91 kB / 443.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003097/0.3059, allocations: 1.241 MB / 444.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007238/0.3131, allocations: 2.302 MB / 447.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005595/0.3188, allocations: 1.435 MB / 448.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009743/0.3285, allocations: 6.489 MB / 455 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007544/0.3293, allocations: 454.5 kB / 455.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.3311, allocations: 1.085 MB / 456.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.3323, allocations: 1.107 MB / 457.7 MB, free: 188 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002111/0.3326, allocations: 76.38 kB / 457.7 MB, free: 188 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004597/0.3372, allocations: 1.483 MB / 459.2 MB, free: 116 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004479/0.3376, allocations: 328.4 kB / 459.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001845/0.3395, allocations: 1.37 MB / 460.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005905/0.3454, allocations: 3.789 MB / 464.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3454, allocations: 0 / 464.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3454, allocations: 0 / 464.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.137e-05/0.3455, allocations: 0 / 464.7 MB, free: 14.25 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.005762/0.3513, allocations: 3.81 MB / 468.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3513, allocations: 9.156 kB / 468.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005174/0.3519, allocations: 413.7 kB / 468.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003255/0.3551, allocations: 2.447 MB / 471.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.3552, allocations: 43.27 kB / 471.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.3553, allocations: 51.17 kB / 471.5 MB, free: 9.723 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.3566, allocations: 0.7288 MB / 472.2 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.3566, allocations: 3.938 kB / 472.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.105e-05/0.3567, allocations: 20.62 kB / 472.2 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.3567, allocations: 24.83 kB / 472.2 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.3582, allocations: 0.8116 MB / 473 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005318/0.3635, allocations: 3.056 MB / 476.1 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.3648, allocations: 0.5829 MB / 476.7 MB, free: 5.113 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009819/0.3658, allocations: 0.6399 MB / 477.3 MB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03009/0.3959, allocations: 30.12 MB / 0.4955 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000766/0.3967, allocations: 368.1 kB / 0.4959 GB, free: 1.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.505e-06/0.3967, allocations: 0 / 0.4959 GB, free: 1.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002473/0.3991, allocations: 1.106 MB / 0.497 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.3992, allocations: 69.81 kB / 0.497 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003602/0.4028, allocations: 2.928 MB / 0.4999 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.402e-05/0.4029, allocations: 41.69 kB / 0.4999 GB, free: 13.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.4042, allocations: 1.49 MB / 0.5014 GB, free: 12.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.4044, allocations: 176.2 kB / 0.5016 GB, free: 12.08 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003205/0.4047, allocations: 238.3 kB / 0.5018 GB, free: 11.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4049, allocations: 337.9 kB / 0.5021 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005977/0.4055, allocations: 245.8 kB / 0.5024 GB, free: 11.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008406/0.4063, allocations: 0.5942 MB / 0.5029 GB, free: 10.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.4078, allocations: 0.9003 MB / 0.5038 GB, free: 9.426 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.4078, allocations: 4 kB / 0.5038 GB, free: 9.422 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002399/0.4102, allocations: 1.242 MB / 0.505 GB, free: 8.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.4102, allocations: 12 kB / 0.505 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/0.4104, allocations: 83.94 kB / 0.5051 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.972e-05/0.4104, allocations: 16 kB / 0.5051 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006907/0.4111, allocations: 204.1 kB / 0.5053 GB, free: 7.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.525e-05/0.4111, allocations: 27.92 kB / 0.5054 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.4124, allocations: 112.9 kB / 0.5055 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.4125, allocations: 67.98 kB / 0.5055 GB, free: 7.664 MB / 414.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.0007833/0.4133, allocations: 430.3 kB / 0.5059 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005/0.4138, allocations: 397.5 kB / 0.5063 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002594/0.4164, allocations: 1.204 MB / 0.5075 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.4164, allocations: 8 kB / 0.5075 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4165, allocations: 0 / 0.5075 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.4165, allocations: 3.984 kB / 0.5075 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003591/0.4201, allocations: 2.094 MB / 0.5096 GB, free: 3.469 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.323e-05/0.4202, allocations: 68 kB / 0.5096 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004823/0.4207, allocations: 99.92 kB / 0.5097 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.4207, allocations: 0 / 0.5097 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.4207, allocations: 31.98 kB / 0.5097 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.4208, allocations: 4.875 kB / 0.5097 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4208, allocations: 3.938 kB / 0.5098 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.4233, allocations: 1.321 MB / 0.511 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008929/0.4242, allocations: 494.4 kB / 0.5115 GB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002797/0.4245, allocations: 12 kB / 0.5115 GB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006376/0.4251, allocations: 27.95 kB / 0.5115 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.4253, allocations: 63.89 kB / 0.5116 GB, free: 1.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.963e-05/0.4253, allocations: 40.98 kB / 0.5116 GB, free: 1.273 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002476/0.4278, allocations: 1.907 MB / 0.5135 GB, free: 15.37 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4278, allocations: 0 / 0.5135 GB, free: 15.37 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001453/0.4293, allocations: 0.5891 MB / 0.5141 GB, free: 14.78 MB / 430.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.001073/0.4304, allocations: 0.7775 MB / 0.5148 GB, free: 14.13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001599/0.432, allocations: 0.806 MB / 0.5156 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.432, allocations: 0 / 0.5156 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000787/0.4328, allocations: 447 kB / 0.5161 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/0.4353, allocations: 0.6161 MB / 0.5167 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006057/0.4414, allocations: 4.463 MB / 0.521 GB, free: 7.719 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.4426, allocations: 1.661 MB / 0.5226 GB, free: 6.031 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003125/0.4429, allocations: 159.4 kB / 0.5228 GB, free: 5.879 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4429, allocations: 4 kB / 0.5228 GB, free: 5.875 MB / 430.1 MB Notification: Performance of Templates: time 0.1169/0.5598, allocations: 37.58 MB / 0.5595 GB, free: 464 kB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: 11.956499413005076]