Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.TestGyrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gyrator.v1|gyrator.v2|gyrator.i1|gyrator.i2",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator") translateModel(ModelicaTest.Electrical.Analog.TestGyrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gyrator.v1|gyrator.v2|gyrator.i1|gyrator.i2",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.5 MB / 244.1 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008394/0.0008397, allocations: 105.4 kB / 296.1 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3383/0.3383, allocations: 44.83 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003004/0.0003005, allocations: 4 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.3803, allocations: 62.95 MB / 0.5165 GB, free: 37.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.4973, allocations: 87.29 MB / 0.6017 GB, free: 2.074 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.4976, allocations: 71.95 kB / 0.6018 GB, free: 2.004 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003502/0.5011, allocations: 1.538 MB / 0.6033 GB, free: 480 kB / 410.7 MB Notification: Performance of FrontEnd: time 5.56e-06/0.5012, allocations: 0 / 0.6033 GB, free: 480 kB / 410.7 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.5012, allocations: 3.938 kB / 0.6033 GB, free: 476 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004099/0.5016, allocations: 387.4 kB / 0.6036 GB, free: 32 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.5016, allocations: 8.875 kB / 0.6037 GB, free: 24 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.864e-05/0.5017, allocations: 8.844 kB / 0.6037 GB, free: 16 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.5018, allocations: 176.2 kB / 0.6038 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.5019, allocations: 8.609 kB / 0.6038 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/0.5019, allocations: 12.38 kB / 0.6039 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.5021, allocations: 133.4 kB / 0.604 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.5021, allocations: 4.188 kB / 0.604 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.5022, allocations: 11.94 kB / 0.604 GB, free: 15.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.5022, allocations: 0 / 0.604 GB, free: 15.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/0.5023, allocations: 59.97 kB / 0.6041 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000792/0.5031, allocations: 0.7215 MB / 0.6048 GB, free: 14.78 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.471e-05/0.5032, allocations: 169.1 kB / 0.6049 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.776e-05/0.5032, allocations: 84.14 kB / 0.605 GB, free: 14.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.5033, allocations: 79.28 kB / 0.6051 GB, free: 14.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.416e-05/0.5033, allocations: 109.8 kB / 0.6052 GB, free: 14.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=0): time 1.132e-06/0.5034, allocations: 0 / 0.6052 GB, free: 14.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=0): time 8e-05/0.5034, allocations: 29.7 kB / 0.6052 GB, free: 14.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.5035, allocations: 130.6 kB / 0.6053 GB, free: 14.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.5037, allocations: 160.6 kB / 0.6055 GB, free: 13.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.5037, allocations: 25.7 kB / 0.6055 GB, free: 13.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.389e-05/0.5038, allocations: 119.7 kB / 0.6056 GB, free: 13.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.547e-06/0.5038, allocations: 7.938 kB / 0.6056 GB, free: 13.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-06/0.5038, allocations: 0 / 0.6056 GB, free: 13.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.5039, allocations: 322.8 kB / 0.6059 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.483e-05/0.5039, allocations: 4 kB / 0.6059 GB, free: 13.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.291e-05/0.504, allocations: 53.16 kB / 0.606 GB, free: 13.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.661e-05/0.5041, allocations: 53.08 kB / 0.606 GB, free: 13.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.5041, allocations: 0 / 0.606 GB, free: 13.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001412/0.5042, allocations: 77.47 kB / 0.6061 GB, free: 13.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.5043, allocations: 4 kB / 0.6061 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.5043, allocations: 0 / 0.6061 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.5043, allocations: 4 kB / 0.6061 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.309e-05/0.5044, allocations: 11.94 kB / 0.6061 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.5044, allocations: 4 kB / 0.6061 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.675e-05/0.5044, allocations: 12.03 kB / 0.6062 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.5044, allocations: 11.94 kB / 0.6062 GB, free: 13.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001159/0.5046, allocations: 193.1 kB / 0.6063 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.982e-05/0.5046, allocations: 108.9 kB / 0.6065 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.5047, allocations: 108.9 kB / 0.6066 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.178e-05/0.5048, allocations: 180.3 kB / 0.6067 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.979e-05/0.5048, allocations: 188.6 kB / 0.6069 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.633e-05/0.5049, allocations: 184.2 kB / 0.6071 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002777/0.5052, allocations: 445.1 kB / 0.6075 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.474e-05/0.5052, allocations: 101 kB / 0.6076 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.012e-05/0.5053, allocations: 101 kB / 0.6077 GB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.843e-05/0.5054, allocations: 184.2 kB / 0.6079 GB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-05/0.5055, allocations: 188.2 kB / 0.6081 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.945e-05/0.5056, allocations: 180.2 kB / 0.6082 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.28e-05/0.5057, allocations: 176.3 kB / 0.6084 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002134/0.5059, allocations: 315.6 kB / 0.6087 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.506, allocations: 194 kB / 0.6089 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.5061, allocations: 181.5 kB / 0.6091 GB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.5063, allocations: 105 kB / 0.6092 GB, free: 9.949 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.5064, allocations: 184.2 kB / 0.6093 GB, free: 9.762 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.544e-05/0.5064, allocations: 105 kB / 0.6094 GB, free: 9.652 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001081/0.5066, allocations: 111.2 kB / 0.6095 GB, free: 9.543 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5066, allocations: 4 kB / 0.6095 GB, free: 9.539 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002793/0.5069, allocations: 23.84 kB / 0.6096 GB, free: 9.516 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0001851/0.507, allocations: 166.5 kB / 0.6097 GB, free: 9.344 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.5071, allocations: 23.92 kB / 0.6097 GB, free: 9.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5072, allocations: 0 / 0.6097 GB, free: 9.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.5072, allocations: 0 / 0.6097 GB, free: 9.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005326/0.5077, allocations: 0.5266 MB / 0.6103 GB, free: 8.789 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004625/0.5082, allocations: 313.6 kB / 0.6106 GB, free: 8.453 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.5085, allocations: 0.6926 MB / 0.6112 GB, free: 7.734 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.572e-05/0.5085, allocations: 7.438 kB / 0.6112 GB, free: 7.727 MB / 426.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5085, allocations: 3.938 kB / 0.6112 GB, free: 7.723 MB / 426.7 MB Notification: Performance of Templates: time 0.002167/0.5107, allocations: 0.8331 MB / 0.6121 GB, free: 6.887 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestGyrator/TestGyrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches