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.002184/0.002184, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.937/1.937, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001096, allocations: 90.56 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.042e-05/2.039e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3417, allocations: 47.56 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1618/0.5036, allocations: 96.79 MB / 459.1 MB, free: 5.492 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003467/0.5041, allocations: 79.95 kB / 459.2 MB, free: 5.414 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1185/0.6225, allocations: 27.8 MB / 487 MB, free: 9.539 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.6226, allocations: 0 / 487 MB, free: 9.539 MB / 379.1 MB Notification: Performance of Transformations before backend: time 8.304e-05/0.6227, allocations: 24.66 kB / 487 MB, free: 9.516 MB / 379.1 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.002809/0.6255, allocations: 1.109 MB / 488.1 MB, free: 8.359 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.6256, allocations: 12.03 kB / 488.2 MB, free: 8.348 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.6266, allocations: 190.4 kB / 488.3 MB, free: 8.16 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002367/0.629, allocations: 0.7964 MB / 489.1 MB, free: 7.32 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.348e-05/0.6291, allocations: 32 kB / 489.2 MB, free: 7.289 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/0.6293, allocations: 63.86 kB / 489.2 MB, free: 7.227 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001678/0.631, allocations: 0.5312 MB / 489.8 MB, free: 6.695 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.633, allocations: 0.7474 MB / 490.5 MB, free: 5.922 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.809e-05/0.6331, allocations: 8 kB / 490.5 MB, free: 5.914 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.6332, allocations: 0 / 490.5 MB, free: 5.914 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/0.6332, allocations: 24 kB / 490.5 MB, free: 5.891 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008465/0.6417, allocations: 3.731 MB / 494.3 MB, free: 1.953 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000906/0.6427, allocations: 404.2 kB / 494.7 MB, free: 1.531 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007709/0.6435, allocations: 237.5 kB / 494.9 MB, free: 1.297 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.094e-05/0.6435, allocations: 11.92 kB / 494.9 MB, free: 1.285 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.6436, allocations: 46.33 kB / 495 MB, free: 1.23 MB / 379.1 MB Notification: Performance of pre-optimization done (n=42): time 4.158e-06/0.6436, allocations: 0 / 495 MB, free: 1.23 MB / 379.1 MB Notification: Performance of matching and sorting (n=47): time 0.003177/0.6468, allocations: 1.099 MB / 496.1 MB, free: 72 kB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.647, allocations: 81.55 kB / 496.1 MB, free: 15.97 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.6482, allocations: 0.5818 MB / 496.7 MB, free: 15.39 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 6.36e-05/0.6483, allocations: 25.7 kB / 496.7 MB, free: 15.36 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005148/0.6488, allocations: 0.5783 MB / 497.3 MB, free: 14.77 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.649, allocations: 161.6 kB / 497.5 MB, free: 14.61 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.649, allocations: 0 / 497.5 MB, free: 14.61 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.6492, allocations: 338.8 kB / 497.8 MB, free: 14.27 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003872/0.6496, allocations: 141.5 kB / 497.9 MB, free: 14.13 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006313/0.6503, allocations: 424.4 kB / 498.4 MB, free: 13.58 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005537/0.6508, allocations: 216.6 kB / 498.6 MB, free: 13.37 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.6509, allocations: 8 kB / 498.6 MB, free: 13.36 MB / 395.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001707/0.6526, allocations: 0.6071 MB / 499.2 MB, free: 12.75 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.348e-05/0.6527, allocations: 11.98 kB / 499.2 MB, free: 12.73 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.6527, allocations: 12 kB / 499.2 MB, free: 12.72 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004845/0.6532, allocations: 85.97 kB / 499.3 MB, free: 12.63 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.6542, allocations: 167.7 kB / 499.5 MB, free: 12.47 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003607/0.6578, allocations: 2.875 MB / 0.4906 GB, free: 9.359 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.6589, allocations: 19.98 kB / 0.4906 GB, free: 9.34 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.408e-05/0.659, allocations: 39.95 kB / 0.4906 GB, free: 9.301 MB / 395.1 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.0002152/0.6592, allocations: 137.7 kB / 0.4907 GB, free: 9.16 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.6594, allocations: 78.97 kB / 0.4908 GB, free: 9.082 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/0.6607, allocations: 437.7 kB / 0.4912 GB, free: 8.637 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.6608, allocations: 11.98 kB / 0.4912 GB, free: 8.625 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.6608, allocations: 4 kB / 0.4913 GB, free: 8.621 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.6608, allocations: 7.922 kB / 0.4913 GB, free: 8.613 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/0.6639, allocations: 1.256 MB / 0.4925 GB, free: 7.285 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.6639, allocations: 4 kB / 0.4925 GB, free: 7.281 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000622/0.6645, allocations: 68.12 kB / 0.4926 GB, free: 7.215 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003936/0.665, allocations: 81.67 kB / 0.4926 GB, free: 7.129 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.665, allocations: 11.95 kB / 0.4926 GB, free: 7.117 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003356/0.6684, allocations: 2.865 MB / 0.4954 GB, free: 4.023 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.6684, allocations: 3.938 kB / 0.4954 GB, free: 4.02 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.6703, allocations: 0.8164 MB / 0.4962 GB, free: 3.117 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004551/0.6708, allocations: 184.2 kB / 0.4964 GB, free: 2.918 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.6709, allocations: 8 kB / 0.4964 GB, free: 2.91 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007012/0.6716, allocations: 23.97 kB / 0.4964 GB, free: 2.887 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.6718, allocations: 39.91 kB / 0.4965 GB, free: 2.848 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.6718, allocations: 12 kB / 0.4965 GB, free: 2.836 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009182/0.6728, allocations: 435.2 kB / 0.4969 GB, free: 2.418 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6728, allocations: 4 kB / 0.4969 GB, free: 2.414 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001331/0.6741, allocations: 199.9 kB / 0.4971 GB, free: 2.219 MB / 395.1 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.0005739/0.6747, allocations: 267.9 kB / 0.4974 GB, free: 1.953 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.6763, allocations: 0.6272 MB / 0.498 GB, free: 1.305 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.6763, allocations: 0 / 0.498 GB, free: 1.305 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008864/0.6772, allocations: 427.8 kB / 0.4984 GB, free: 0.8672 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.6789, allocations: 169.1 kB / 0.4985 GB, free: 0.7031 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2743/0.9532, allocations: 1.26 MB / 0.4998 GB, free: 108.8 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007226/0.954, allocations: 1.029 MB / 0.5008 GB, free: 108.1 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/0.9543, allocations: 56.31 kB / 0.5008 GB, free: 108.1 MB / 395.1 MB Notification: Performance of SimCode: time 1.113e-06/0.9543, allocations: 1 kB / 0.5008 GB, free: 108.1 MB / 395.1 MB Notification: Performance of Templates: time 0.03937/0.9937, allocations: 20.11 MB / 0.5205 GB, free: 107.3 MB / 395.1 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