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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001036, allocations: 112.6 kB / 17.06 MB, free: 6.016 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.001188/0.001188, allocations: 191.9 kB / 18 MB, free: 5.098 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.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009366/0.0009367, allocations: 43.94 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2566, allocations: 49.43 MB / 400.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01521/0.2718, allocations: 14.71 MB / 415.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02495/0.2968, allocations: 20.67 MB / 436.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0034/0.3003, allocations: 91.25 kB / 436.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004022/0.3043, allocations: 1.225 MB / 437.4 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009082/0.3135, allocations: 2.297 MB / 439.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005486/0.319, allocations: 1.439 MB / 441.2 MB, free: 452 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.3299, allocations: 6.493 MB / 447.6 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000827/0.3307, allocations: 453 kB / 448.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.3323, allocations: 1.093 MB / 449.2 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.3336, allocations: 1.102 MB / 450.3 MB, free: 7.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.3338, allocations: 76 kB / 450.4 MB, free: 7.176 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004059/0.3379, allocations: 1.479 MB / 451.8 MB, free: 5.695 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003044/0.3382, allocations: 333.5 kB / 452.2 MB, free: 5.367 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001207/0.3394, allocations: 1.366 MB / 453.5 MB, free: 3.992 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005646/0.3451, allocations: 3.787 MB / 457.3 MB, free: 192 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3451, allocations: 0 / 457.3 MB, free: 192 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3451, allocations: 0 / 457.3 MB, free: 192 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.44e-05/0.3452, allocations: 0 / 457.3 MB, free: 192 kB / 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.006355/0.3515, allocations: 3.809 MB / 461.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.3516, allocations: 8.031 kB / 461.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004657/0.3521, allocations: 421.4 kB / 461.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004148/0.3562, allocations: 2.449 MB / 464 MB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.966e-05/0.3563, allocations: 37 kB / 464 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.3564, allocations: 63.88 kB / 464.1 MB, free: 9.258 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.3581, allocations: 0.7226 MB / 464.8 MB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3581, allocations: 0 / 464.8 MB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.735e-05/0.3582, allocations: 24 kB / 464.8 MB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.684e-05/0.3582, allocations: 19.98 kB / 464.9 MB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.3598, allocations: 0.8163 MB / 465.7 MB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005381/0.3652, allocations: 3.052 MB / 468.7 MB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.3664, allocations: 0.5713 MB / 469.3 MB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000999/0.3674, allocations: 0.6438 MB / 469.9 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03036/0.3978, allocations: 30.13 MB / 0.4884 GB, free: 1.062 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007341/0.3986, allocations: 361.7 kB / 0.4887 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/0.3986, allocations: 0 / 0.4887 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00238/0.401, allocations: 1.107 MB / 0.4898 GB, free: 15.58 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.401, allocations: 63.41 kB / 0.4898 GB, free: 15.51 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003497/0.4045, allocations: 2.935 MB / 0.4927 GB, free: 12.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.14e-05/0.4046, allocations: 33.7 kB / 0.4927 GB, free: 12.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.4058, allocations: 1.498 MB / 0.4942 GB, free: 11.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.406, allocations: 178.6 kB / 0.4944 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002964/0.4063, allocations: 230.4 kB / 0.4946 GB, free: 10.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.4064, allocations: 337.9 kB / 0.4949 GB, free: 10.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005646/0.407, allocations: 241.8 kB / 0.4951 GB, free: 10.04 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008041/0.4078, allocations: 0.5942 MB / 0.4957 GB, free: 9.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.4092, allocations: 0.9013 MB / 0.4966 GB, free: 8.195 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.4092, allocations: 7.938 kB / 0.4966 GB, free: 8.188 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002263/0.4115, allocations: 1.243 MB / 0.4978 GB, free: 6.941 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.4115, allocations: 12 kB / 0.4978 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.4116, allocations: 87.94 kB / 0.4979 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.138e-05/0.4117, allocations: 16 kB / 0.4979 GB, free: 6.828 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000716/0.4124, allocations: 208.2 kB / 0.4981 GB, free: 6.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.643e-05/0.4124, allocations: 27.92 kB / 0.4982 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.4136, allocations: 107.3 kB / 0.4983 GB, free: 6.492 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.4137, allocations: 68 kB / 0.4983 GB, free: 6.426 MB / 430.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.0008141/0.4145, allocations: 438.2 kB / 0.4987 GB, free: 5.988 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004002/0.4149, allocations: 401.5 kB / 0.4991 GB, free: 5.594 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00265/0.4176, allocations: 1.186 MB / 0.5003 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.4176, allocations: 8 kB / 0.5003 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.4176, allocations: 0 / 0.5003 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.4176, allocations: 0 / 0.5003 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003326/0.4209, allocations: 2.1 MB / 0.5023 GB, free: 2.211 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.271e-05/0.4211, allocations: 76.05 kB / 0.5024 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004699/0.4215, allocations: 87.92 kB / 0.5025 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.4215, allocations: 0 / 0.5025 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.982e-05/0.4216, allocations: 35.94 kB / 0.5025 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.4216, allocations: 4 kB / 0.5025 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4216, allocations: 3.984 kB / 0.5025 GB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002215/0.4239, allocations: 1.319 MB / 0.5038 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007815/0.4247, allocations: 498.4 kB / 0.5043 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000267/0.4249, allocations: 15.94 kB / 0.5043 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006429/0.4256, allocations: 27.91 kB / 0.5044 GB, free: 112 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.4258, allocations: 67.88 kB / 0.5044 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.69e-05/0.4258, allocations: 44 kB / 0.5045 GB, free: 0 / 430.1 MB Notification: Performance of sorting global known variables: time 0.002738/0.4286, allocations: 1.903 MB / 0.5063 GB, free: 14.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4286, allocations: 0 / 0.5063 GB, free: 14.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001362/0.43, allocations: 0.593 MB / 0.5069 GB, free: 13.5 MB / 446.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.001179/0.4312, allocations: 0.7723 MB / 0.5076 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.4329, allocations: 0.8135 MB / 0.5084 GB, free: 11.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.4329, allocations: 0 / 0.5084 GB, free: 11.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008462/0.4337, allocations: 443 kB / 0.5089 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/0.4364, allocations: 0.6 MB / 0.5095 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006449/0.4428, allocations: 4.399 MB / 0.5137 GB, free: 6.379 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/0.444, allocations: 1.665 MB / 0.5154 GB, free: 4.688 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001109/0.4451, allocations: 361.1 kB / 0.5157 GB, free: 4.328 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.4453, allocations: 151.4 kB / 0.5159 GB, free: 4.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4453, allocations: 0 / 0.5159 GB, free: 4.18 MB / 446.1 MB Notification: Performance of Templates: time 0.2441/0.6894, allocations: 31.21 MB / 0.5463 GB, free: 131.3 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/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