Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002149/0.002148, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.026/2.026, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001118, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.623e-05/2.647e-05, allocations: 3.984 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.09561, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4349/0.5305, allocations: 102.2 MB / 471.3 MB, free: 7.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.5308, allocations: 70.53 kB / 471.3 MB, free: 7.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7062/1.237, allocations: 125.5 MB / 0.5829 GB, free: 89.87 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.537e-06/1.237, allocations: 3.812 kB / 0.5829 GB, free: 89.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002642/1.237, allocations: 46.06 kB / 0.5829 GB, free: 89.87 MB / 410.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.007248/1.245, allocations: 2.715 MB / 0.5856 GB, free: 88.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/1.245, allocations: 10.73 kB / 0.5856 GB, free: 88.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008251/1.246, allocations: 398.8 kB / 0.5859 GB, free: 88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006354/1.252, allocations: 2.358 MB / 0.5882 GB, free: 86.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.237e-05/1.252, allocations: 39.77 kB / 0.5883 GB, free: 86.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/1.252, allocations: 63.94 kB / 0.5883 GB, free: 86.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/1.254, allocations: 0.7887 MB / 0.5891 GB, free: 86.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/1.254, allocations: 0 / 0.5891 GB, free: 86.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/1.254, allocations: 26.34 kB / 0.5891 GB, free: 86.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.848e-05/1.254, allocations: 21.69 kB / 0.5892 GB, free: 86.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/1.256, allocations: 0.7152 MB / 0.5899 GB, free: 86.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008708/1.265, allocations: 3.194 MB / 0.593 GB, free: 84.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/1.266, allocations: 487.9 kB / 0.5934 GB, free: 84.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/1.267, allocations: 0.5858 MB / 0.594 GB, free: 84.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04961/1.317, allocations: 36.18 MB / 0.6293 GB, free: 46.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006621/1.317, allocations: 317.5 kB / 0.6296 GB, free: 45.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.837e-06/1.317, allocations: 0 / 0.6296 GB, free: 45.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001922/1.319, allocations: 0.8092 MB / 0.6304 GB, free: 45.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.518e-05/1.319, allocations: 269 kB / 0.6307 GB, free: 44.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004807/1.324, allocations: 2.512 MB / 0.6331 GB, free: 42.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001643/1.324, allocations: 37.69 kB / 0.6332 GB, free: 42.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/1.326, allocations: 1.252 MB / 0.6344 GB, free: 40.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/1.326, allocations: 163 kB / 0.6346 GB, free: 40.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-05/1.326, allocations: 16 kB / 0.6346 GB, free: 40.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.307e-05/1.326, allocations: 346.8 kB / 0.6349 GB, free: 40.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005088/1.327, allocations: 190 kB / 0.6351 GB, free: 40.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006854/1.327, allocations: 0.5932 MB / 0.6357 GB, free: 39.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006408/1.328, allocations: 292.6 kB / 0.6359 GB, free: 39.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/1.328, allocations: 0 / 0.6359 GB, free: 39.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001844/1.33, allocations: 0.8117 MB / 0.6367 GB, free: 38.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/1.33, allocations: 15.94 kB / 0.6368 GB, free: 38.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001489/1.33, allocations: 79.98 kB / 0.6368 GB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.465e-05/1.33, allocations: 23.98 kB / 0.6369 GB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/1.331, allocations: 211.8 kB / 0.6371 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.88e-05/1.332, allocations: 31.81 kB / 0.6371 GB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/1.334, allocations: 126.9 kB / 0.6372 GB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/1.334, allocations: 64 kB / 0.6373 GB, free: 37.74 MB / 410.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002507/1.334, allocations: 170.5 kB / 0.6374 GB, free: 37.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006267/1.335, allocations: 379.4 kB / 0.6378 GB, free: 37.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004334/1.339, allocations: 1.152 MB / 0.6389 GB, free: 36.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/1.339, allocations: 4 kB / 0.6389 GB, free: 36.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/1.339, allocations: 0 / 0.6389 GB, free: 36.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/1.339, allocations: 3.953 kB / 0.6389 GB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00485/1.344, allocations: 2.118 MB / 0.641 GB, free: 33.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001348/1.344, allocations: 72.05 kB / 0.6411 GB, free: 33.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008814/1.345, allocations: 103.9 kB / 0.6412 GB, free: 33.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/1.345, allocations: 0 / 0.6412 GB, free: 33.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-05/1.345, allocations: 35.94 kB / 0.6412 GB, free: 33.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/1.345, allocations: 8 kB / 0.6412 GB, free: 33.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/1.345, allocations: 0 / 0.6412 GB, free: 33.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/1.348, allocations: 1.214 MB / 0.6424 GB, free: 32.37 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/1.349, allocations: 0.5529 MB / 0.6429 GB, free: 31.78 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006961/1.35, allocations: 16.06 kB / 0.6429 GB, free: 31.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/1.352, allocations: 47.95 kB / 0.643 GB, free: 31.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/1.352, allocations: 55.94 kB / 0.643 GB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/1.352, allocations: 43.92 kB / 0.6431 GB, free: 31.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003969/1.356, allocations: 1.923 MB / 0.645 GB, free: 29.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.356, allocations: 0 / 0.645 GB, free: 29.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002424/1.358, allocations: 0.644 MB / 0.6456 GB, free: 29.05 MB / 410.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001601/1.36, allocations: 0.8502 MB / 0.6464 GB, free: 28.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00159/1.362, allocations: 0.7045 MB / 0.6471 GB, free: 27.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/1.362, allocations: 320 / 0.6471 GB, free: 27.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007506/1.362, allocations: 403.1 kB / 0.6475 GB, free: 27.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002883/1.365, allocations: 0.4891 MB / 0.648 GB, free: 26.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007376/1.373, allocations: 3.226 MB / 0.6511 GB, free: 23.44 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/1.374, allocations: 1.728 MB / 0.6528 GB, free: 21.69 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005403/1.375, allocations: 167.4 kB / 0.653 GB, free: 21.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.375, allocations: 0 / 0.653 GB, free: 21.52 MB / 410.7 MB Notification: Performance of Templates: time 0.0802/1.455, allocations: 36.97 MB / 0.6891 GB, free: 0.4922 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches