Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 183.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.18/1.18, allocations: 225.7 MB / 243.2 MB, free: 8.477 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007371/0.0007372, allocations: 92.08 kB / 294.4 MB, free: 9.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002136/0.0002136, allocations: 7.938 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1728, allocations: 50.42 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.007326/0.1802, allocations: 13.03 MB / 417.6 MB, free: 18.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01645/0.1967, allocations: 21.03 MB / 438.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.1981, allocations: 31.81 kB / 438.7 MB, free: 12.78 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002586/0.2007, allocations: 1.104 MB / 439.8 MB, free: 11.67 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005295/0.206, allocations: 1.919 MB / 441.7 MB, free: 9.738 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003338/0.2094, allocations: 1.196 MB / 442.9 MB, free: 8.539 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007823/0.2172, allocations: 6.191 MB / 449.1 MB, free: 2.328 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005548/0.2178, allocations: 425.5 kB / 449.5 MB, free: 1.879 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.2189, allocations: 1.006 MB / 450.5 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009388/0.2198, allocations: 1.079 MB / 451.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00016/0.22, allocations: 44 kB / 451.6 MB, free: 15.74 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003209/0.2232, allocations: 1.338 MB / 452.9 MB, free: 14.4 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002675/0.2235, allocations: 293.6 kB / 453.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001108/0.2246, allocations: 1.364 MB / 454.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003381/0.228, allocations: 3.602 MB / 458.2 MB, free: 9.109 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.228, allocations: 4 kB / 458.2 MB, free: 9.105 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.228, allocations: 0 / 458.2 MB, free: 9.105 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.599e-05/0.2281, allocations: 4 kB / 458.2 MB, free: 9.102 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003856/0.2319, allocations: 3.218 MB / 461.4 MB, free: 5.809 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.232, allocations: 8.031 kB / 461.4 MB, free: 5.801 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003552/0.2323, allocations: 395.2 kB / 461.8 MB, free: 5.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/0.2352, allocations: 2.441 MB / 464.3 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.38e-05/0.2352, allocations: 41 kB / 464.3 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.2353, allocations: 55.91 kB / 464.4 MB, free: 2.801 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.2366, allocations: 0.746 MB / 465.1 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.2366, allocations: 3.938 kB / 465.1 MB, free: 2.047 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.316e-05/0.2367, allocations: 20 kB / 465.1 MB, free: 2.027 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.2367, allocations: 19.98 kB / 465.1 MB, free: 2.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001445/0.2382, allocations: 0.8554 MB / 466 MB, free: 1.148 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004414/0.2426, allocations: 3.083 MB / 469.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.2437, allocations: 0.6064 MB / 469.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000967/0.2447, allocations: 0.6789 MB / 470.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02535/0.2701, allocations: 30.16 MB / 0.4888 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006869/0.2708, allocations: 381.5 kB / 0.4892 GB, free: 10.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.064e-06/0.2708, allocations: 4 kB / 0.4892 GB, free: 10.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002007/0.2728, allocations: 1.152 MB / 0.4903 GB, free: 8.867 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.2728, allocations: 59.41 kB / 0.4903 GB, free: 8.797 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00294/0.2758, allocations: 2.896 MB / 0.4932 GB, free: 5.891 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.271e-05/0.2758, allocations: 37.7 kB / 0.4932 GB, free: 5.848 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/0.277, allocations: 1.486 MB / 0.4947 GB, free: 4.352 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.2771, allocations: 165.7 kB / 0.4948 GB, free: 4.188 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/0.2772, allocations: 16 kB / 0.4948 GB, free: 4.172 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.2773, allocations: 338 kB / 0.4952 GB, free: 3.836 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005388/0.2778, allocations: 261.8 kB / 0.4954 GB, free: 3.582 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007085/0.2785, allocations: 0.6138 MB / 0.496 GB, free: 2.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.2798, allocations: 0.9442 MB / 0.4969 GB, free: 1.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.2798, allocations: 7.938 kB / 0.4969 GB, free: 1.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001801/0.2816, allocations: 1.26 MB / 0.4982 GB, free: 408 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.2817, allocations: 12 kB / 0.4982 GB, free: 396 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.265e-05/0.2818, allocations: 80.84 kB / 0.4983 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.2818, allocations: 16 kB / 0.4983 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006608/0.2825, allocations: 215.6 kB / 0.4985 GB, free: 84 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.173e-05/0.2825, allocations: 31.84 kB / 0.4985 GB, free: 52 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1405/0.423, allocations: 115.4 kB / 0.4986 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.4232, allocations: 64.25 kB / 0.4987 GB, free: 100.5 MB / 378.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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.0007947/0.424, allocations: 441 kB / 0.4991 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003496/0.4244, allocations: 382.4 kB / 0.4995 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002783/0.4271, allocations: 1.239 MB / 0.5007 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.4272, allocations: 7.906 kB / 0.5007 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4272, allocations: 0 / 0.5007 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.4272, allocations: 2.016 kB / 0.5007 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002664/0.4299, allocations: 2.129 MB / 0.5028 GB, free: 99.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-05/0.4299, allocations: 71.95 kB / 0.5028 GB, free: 99.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004363/0.4304, allocations: 110.5 kB / 0.5029 GB, free: 99.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.4304, allocations: 0 / 0.5029 GB, free: 99.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.4305, allocations: 35.38 kB / 0.503 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.4305, allocations: 1.406 kB / 0.503 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4305, allocations: 0 / 0.503 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.4322, allocations: 1.362 MB / 0.5043 GB, free: 98.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005317/0.4328, allocations: 476.6 kB / 0.5048 GB, free: 98.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002629/0.4331, allocations: 11.03 kB / 0.5048 GB, free: 98.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006431/0.4337, allocations: 43.3 kB / 0.5048 GB, free: 98.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.4339, allocations: 58.44 kB / 0.5049 GB, free: 98.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.345e-05/0.4339, allocations: 37.64 kB / 0.5049 GB, free: 98.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001998/0.4359, allocations: 1.867 MB / 0.5067 GB, free: 97.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4359, allocations: 0 / 0.5067 GB, free: 97.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001096/0.437, allocations: 0.5837 MB / 0.5073 GB, free: 97.76 MB / 378.7 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.001049/0.4381, allocations: 0.7835 MB / 0.5081 GB, free: 97.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.4394, allocations: 0.85 MB / 0.5089 GB, free: 97.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4394, allocations: 3.594 kB / 0.5089 GB, free: 97.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006104/0.44, allocations: 461.9 kB / 0.5093 GB, free: 97.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002259/0.4423, allocations: 0.5808 MB / 0.5099 GB, free: 96.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004361/0.4466, allocations: 5.243 MB / 0.515 GB, free: 92.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006384/0.4473, allocations: 1.665 MB / 0.5166 GB, free: 90.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001045/0.4483, allocations: 357.1 kB / 0.517 GB, free: 90.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.4485, allocations: 147.4 kB / 0.5171 GB, free: 90.1 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4485, allocations: 0 / 0.5171 GB, free: 90.1 MB / 378.7 MB Notification: Performance of Templates: time 0.04064/0.4892, allocations: 30.05 MB / 0.5465 GB, free: 60.27 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches