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_SinglePhase.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_SinglePhase,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_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,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_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00389/0.003897, allocations: 183.7 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.588/3.588, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001724/0.001724, allocations: 95.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006045/0.0006046, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5024/0.503, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01409/0.5172, allocations: 6.546 MB / 381.1 MB, free: 40.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008237/0.5255, allocations: 2.606 MB / 383.7 MB, free: 38.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.5275, allocations: 27.03 kB / 383.7 MB, free: 38.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003127/0.5307, allocations: 471.3 kB / 384.2 MB, free: 37.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003239/0.534, allocations: 0.4936 MB / 384.7 MB, free: 37.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.5353, allocations: 155.3 kB / 384.8 MB, free: 37.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004165/0.5395, allocations: 1.053 MB / 385.9 MB, free: 36.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/0.5411, allocations: 431.1 kB / 386.3 MB, free: 36.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001507/0.5426, allocations: 445.9 kB / 386.7 MB, free: 36.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001559/0.5442, allocations: 491.9 kB / 387.2 MB, free: 35.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003825/0.5446, allocations: 65.84 kB / 387.3 MB, free: 35.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000881/0.5455, allocations: 103.5 kB / 387.4 MB, free: 35.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002838/0.5458, allocations: 179.3 kB / 387.5 MB, free: 35.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006227/0.5465, allocations: 270.4 kB / 387.8 MB, free: 35.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002612/0.5491, allocations: 1.32 MB / 389.1 MB, free: 34.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.5492, allocations: 0 / 389.1 MB, free: 34.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.5492, allocations: 0 / 389.1 MB, free: 34.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.74e-05/0.5493, allocations: 0 / 389.1 MB, free: 34.21 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.0043/0.5536, allocations: 1.281 MB / 390.4 MB, free: 32.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.947e-05/0.5537, allocations: 8.031 kB / 390.4 MB, free: 32.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/0.555, allocations: 178.4 kB / 390.6 MB, free: 32.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002398/0.5574, allocations: 0.7153 MB / 391.3 MB, free: 31.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.988e-05/0.5576, allocations: 74 kB / 391.4 MB, free: 31.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002868/0.5579, allocations: 99.91 kB / 391.5 MB, free: 31.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003605/0.5615, allocations: 0.9346 MB / 392.4 MB, free: 30.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.049e-05/0.5617, allocations: 7.984 kB / 392.4 MB, free: 30.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000183/0.5619, allocations: 40 kB / 392.5 MB, free: 30.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.495e-05/0.5619, allocations: 24 kB / 392.5 MB, free: 30.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.565, allocations: 0.6559 MB / 393.1 MB, free: 30.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/0.5755, allocations: 3.931 MB / 397.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.577, allocations: 449 kB / 397.5 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.918e-05/0.5771, allocations: 7.984 kB / 397.5 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.5772, allocations: 42.5 kB / 397.6 MB, free: 25.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 4.519e-06/0.5772, allocations: 0 / 397.6 MB, free: 25.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.005757/0.583, allocations: 1.442 MB / 399 MB, free: 23.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.5831, allocations: 81.11 kB / 399.1 MB, free: 23.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001965/0.5851, allocations: 0.7786 MB / 399.9 MB, free: 22.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.5852, allocations: 29.7 kB / 399.9 MB, free: 22.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005737/0.5858, allocations: 0.5861 MB / 400.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.5861, allocations: 161.8 kB / 400.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.785e-05/0.5861, allocations: 12 kB / 400.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.5863, allocations: 342.8 kB / 401 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008433/0.5871, allocations: 169.9 kB / 401.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.5882, allocations: 475.6 kB / 401.6 MB, free: 21.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009832/0.5892, allocations: 255.7 kB / 401.9 MB, free: 20.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.5892, allocations: 4 kB / 401.9 MB, free: 20.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002683/0.5919, allocations: 0.721 MB / 402.6 MB, free: 20.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.885e-05/0.592, allocations: 8 kB / 402.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/0.592, allocations: 15.98 kB / 402.6 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004389/0.5925, allocations: 65.7 kB / 402.7 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.5939, allocations: 160 kB / 402.8 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003292/0.5972, allocations: 2.813 MB / 405.6 MB, free: 16.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.5987, allocations: 43.89 kB / 405.7 MB, free: 16.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/0.5989, allocations: 39.95 kB / 405.7 MB, free: 16.68 MB / 298.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008106/0.5997, allocations: 253.6 kB / 406 MB, free: 16.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002917/0.6, allocations: 91.03 kB / 406.1 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002056/0.6021, allocations: 0.4914 MB / 406.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.6022, allocations: 4 kB / 406.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.6022, allocations: 4 kB / 406.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.6022, allocations: 3.984 kB / 406.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004579/0.6068, allocations: 1.429 MB / 408 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.6069, allocations: 4 kB / 408 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008293/0.6077, allocations: 75.89 kB / 408.1 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003749/0.6081, allocations: 66.03 kB / 408.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.796e-05/0.6082, allocations: 12 kB / 408.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003135/0.6113, allocations: 2.782 MB / 410.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/0.6114, allocations: 11.92 kB / 410.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002993/0.6144, allocations: 0.8631 MB / 411.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006165/0.6151, allocations: 192 kB / 412 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002233/0.6154, allocations: 19.94 kB / 412 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009856/0.6164, allocations: 31.97 kB / 412 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.6166, allocations: 47.97 kB / 412.1 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.576e-05/0.6166, allocations: 12 kB / 412.1 MB, free: 9.812 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00145/0.6181, allocations: 0.5225 MB / 412.6 MB, free: 9.293 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.6181, allocations: 0 / 412.6 MB, free: 9.293 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001953/0.6201, allocations: 204 kB / 412.8 MB, free: 9.094 MB / 298.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003574/0.6205, allocations: 127.2 kB / 412.9 MB, free: 8.961 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.623, allocations: 0.7024 MB / 413.6 MB, free: 8.234 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.457e-06/0.6231, allocations: 0 / 413.6 MB, free: 8.234 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.6244, allocations: 453.1 kB / 414.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/0.6268, allocations: 205.9 kB / 414.3 MB, free: 7.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006058/0.6329, allocations: 2.171 MB / 416.5 MB, free: 5.348 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008665/0.6339, allocations: 1.032 MB / 417.5 MB, free: 4.289 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000403/0.6343, allocations: 63.44 kB / 417.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6343, allocations: 0 / 417.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of Templates: time 0.08765/0.722, allocations: 19.97 MB / 437.5 MB, free: 256 kB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches