Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002091/0.002092, allocations: 181.7 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.015/2.015, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001171/0.001171, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.019e-05/3.03e-05, allocations: 0 / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 47.58 MB / 369.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4538/0.561, allocations: 97.44 MB / 466.5 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.5614, allocations: 83.83 kB / 466.6 MB, free: 12.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1257/0.687, allocations: 28.18 MB / 494.8 MB, free: 1.285 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6871, allocations: 0 / 494.8 MB, free: 1.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001107/0.6872, allocations: 27.98 kB / 494.8 MB, free: 1.258 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003502/0.6907, allocations: 1.115 MB / 496 MB, free: 100 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.6908, allocations: 8.031 kB / 496 MB, free: 92 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001347/0.6922, allocations: 186.5 kB / 496.1 MB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002778/0.695, allocations: 0.7846 MB / 496.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.711e-05/0.6952, allocations: 78 kB / 497 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000273/0.6954, allocations: 103.9 kB / 497.1 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002807/0.6983, allocations: 0.8919 MB / 498 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.37e-05/0.6984, allocations: 0 / 498 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/0.6985, allocations: 40 kB / 498 MB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.78e-05/0.6986, allocations: 28 kB / 498.1 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.7008, allocations: 0.5897 MB / 498.7 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009473/0.7103, allocations: 3.908 MB / 0.4908 GB, free: 9.191 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.7115, allocations: 436.2 kB / 0.4912 GB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000838/0.7123, allocations: 246.2 kB / 0.4914 GB, free: 8.496 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.328e-05/0.7124, allocations: 11.77 kB / 0.4914 GB, free: 8.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.7125, allocations: 42.55 kB / 0.4915 GB, free: 8.434 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 3.727e-06/0.7125, allocations: 0 / 0.4915 GB, free: 8.434 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.00382/0.7163, allocations: 1.192 MB / 0.4926 GB, free: 7.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.7165, allocations: 85.53 kB / 0.4927 GB, free: 7.078 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.7181, allocations: 0.684 MB / 0.4934 GB, free: 6.387 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.7183, allocations: 41.64 kB / 0.4934 GB, free: 6.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005216/0.7188, allocations: 0.5629 MB / 0.494 GB, free: 5.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/0.7191, allocations: 173.5 kB / 0.4942 GB, free: 5.598 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.7191, allocations: 16 kB / 0.4942 GB, free: 5.582 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.7193, allocations: 342.8 kB / 0.4945 GB, free: 5.238 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004782/0.7198, allocations: 153.6 kB / 0.4946 GB, free: 5.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007058/0.7205, allocations: 449.9 kB / 0.4951 GB, free: 4.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006308/0.7212, allocations: 229.5 kB / 0.4953 GB, free: 4.289 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.7212, allocations: 4 kB / 0.4953 GB, free: 4.285 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00193/0.7231, allocations: 0.6966 MB / 0.496 GB, free: 3.578 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.627e-05/0.7232, allocations: 8 kB / 0.496 GB, free: 3.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.7233, allocations: 8.375 kB / 0.496 GB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004841/0.7238, allocations: 105.6 kB / 0.4961 GB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.7248, allocations: 155.8 kB / 0.4962 GB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00371/0.7286, allocations: 2.993 MB / 0.4992 GB, free: 44 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.7298, allocations: 47.94 kB / 0.4992 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.7299, allocations: 36 kB / 0.4992 GB, free: 15.96 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002329/0.7302, allocations: 149.6 kB / 0.4994 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002426/0.7304, allocations: 86.97 kB / 0.4995 GB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.7319, allocations: 490.5 kB / 0.4999 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.732, allocations: 7.953 kB / 0.4999 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.732, allocations: 0 / 0.4999 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.732, allocations: 3.984 kB / 0.4999 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/0.7355, allocations: 1.431 MB / 0.5013 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/0.7356, allocations: 4 kB / 0.5013 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006211/0.7362, allocations: 75.97 kB / 0.5014 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004224/0.7366, allocations: 89.88 kB / 0.5015 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.043e-05/0.7367, allocations: 12 kB / 0.5015 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/0.7403, allocations: 2.974 MB / 0.5044 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.7404, allocations: 3.938 kB / 0.5044 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.7424, allocations: 0.8516 MB / 0.5053 GB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005766/0.743, allocations: 192.1 kB / 0.5054 GB, free: 9.117 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.7432, allocations: 19.94 kB / 0.5055 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007785/0.744, allocations: 31.98 kB / 0.5055 GB, free: 9.066 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.7442, allocations: 31.95 kB / 0.5055 GB, free: 9.035 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.904e-05/0.7443, allocations: 16 kB / 0.5055 GB, free: 9.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001238/0.7455, allocations: 0.5226 MB / 0.506 GB, free: 8.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.7456, allocations: 0 / 0.506 GB, free: 8.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001565/0.7471, allocations: 247.9 kB / 0.5063 GB, free: 8.258 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006677/0.7478, allocations: 314.7 kB / 0.5066 GB, free: 7.945 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.7495, allocations: 0.6686 MB / 0.5072 GB, free: 7.254 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.7496, allocations: 0 / 0.5072 GB, free: 7.254 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00094/0.7505, allocations: 445.6 kB / 0.5077 GB, free: 6.793 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.7524, allocations: 212.7 kB / 0.5079 GB, free: 6.586 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004351/0.7568, allocations: 1.3 MB / 0.5091 GB, free: 5.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009376/0.7578, allocations: 1.036 MB / 0.5101 GB, free: 4.168 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/0.7582, allocations: 59.44 kB / 0.5102 GB, free: 4.109 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7582, allocations: 0 / 0.5102 GB, free: 4.109 MB / 394.7 MB Notification: Performance of Templates: time 0.3135/1.072, allocations: 20.87 MB / 0.5306 GB, free: 117.6 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches