Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002059/0.002059, 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.988/1.988, 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.001162/0.001162, allocations: 88.61 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.604e-05/2.634e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3411, allocations: 47.57 MB / 362.3 MB, free: 45.81 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1556/0.4968, allocations: 93.82 MB / 456.2 MB, free: 8.453 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003252/0.4972, allocations: 83.95 kB / 456.3 MB, free: 8.371 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1753/0.6726, allocations: 40.23 MB / 496.5 MB, free: 15.95 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.6726, allocations: 0 / 496.5 MB, free: 15.95 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001549/0.6728, allocations: 39.94 kB / 496.5 MB, free: 15.91 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004979/0.6778, allocations: 1.55 MB / 498.1 MB, free: 14.3 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.6779, allocations: 8.031 kB / 498.1 MB, free: 14.3 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/0.6795, allocations: 253.6 kB / 498.3 MB, free: 14.05 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003827/0.6834, allocations: 1.102 MB / 499.4 MB, free: 12.9 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.461e-05/0.6835, allocations: 48 kB / 499.5 MB, free: 12.86 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003573/0.6839, allocations: 99.91 kB / 499.6 MB, free: 12.76 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002857/0.6868, allocations: 0.8145 MB / 0.4887 GB, free: 11.94 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003589/0.6904, allocations: 1.211 MB / 0.4898 GB, free: 10.66 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.171e-05/0.6906, allocations: 7.906 kB / 0.4898 GB, free: 10.65 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.6907, allocations: 0 / 0.4898 GB, free: 10.65 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-05/0.6908, allocations: 40 kB / 0.4899 GB, free: 10.61 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.014/0.7048, allocations: 6.366 MB / 0.4961 GB, free: 3.902 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009795/0.7058, allocations: 345.1 kB / 0.4964 GB, free: 3.555 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005029/0.7064, allocations: 186 kB / 0.4966 GB, free: 3.371 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.126e-05/0.7064, allocations: 4.438 kB / 0.4966 GB, free: 3.367 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005809/0.707, allocations: 244.8 kB / 0.4968 GB, free: 3.102 MB / 395.1 MB Notification: Performance of pre-optimization done (n=50): time 3.026e-06/0.7071, allocations: 0 / 0.4968 GB, free: 3.102 MB / 395.1 MB Notification: Performance of matching and sorting (n=56): time 0.004204/0.7113, allocations: 1.51 MB / 0.4983 GB, free: 1.531 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.7115, allocations: 196.5 kB / 0.4985 GB, free: 1.297 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/0.7134, allocations: 0.8515 MB / 0.4993 GB, free: 444 kB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.7136, allocations: 25.7 kB / 0.4994 GB, free: 412 kB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2825/0.996, allocations: 0.8706 MB / 0.5002 GB, free: 101.7 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003532/0.9965, allocations: 200.9 kB / 0.5004 GB, free: 101.6 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.396e-05/0.9965, allocations: 0 / 0.5004 GB, free: 101.6 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.9967, allocations: 355 kB / 0.5007 GB, free: 101.3 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006522/0.9974, allocations: 186.8 kB / 0.5009 GB, free: 101.3 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009659/0.9984, allocations: 0.752 MB / 0.5017 GB, free: 100.6 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009727/0.9994, allocations: 323.9 kB / 0.502 GB, free: 100.6 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.081e-05/0.9994, allocations: 4.969 kB / 0.502 GB, free: 100.6 MB / 395.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002894/1.002, allocations: 0.8802 MB / 0.5028 GB, free: 100.5 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.165e-05/1.002, allocations: 41.58 kB / 0.5029 GB, free: 100.5 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.431e-05/1.003, allocations: 22.45 kB / 0.5029 GB, free: 100.5 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003422/1.003, allocations: 68.92 kB / 0.503 GB, free: 100.5 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/1.005, allocations: 270.4 kB / 0.5032 GB, free: 100.5 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/1.007, allocations: 2.477 MB / 0.5056 GB, free: 98.08 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/1.009, allocations: 48.86 kB / 0.5057 GB, free: 98.07 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002321/1.009, allocations: 61.88 kB / 0.5057 GB, free: 98.07 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003002/1.009, allocations: 161.1 kB / 0.5059 GB, free: 97.96 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00028/1.01, allocations: 115.3 kB / 0.506 GB, free: 97.9 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/1.011, allocations: 465.4 kB / 0.5064 GB, free: 97.83 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/1.011, allocations: 8.641 kB / 0.5065 GB, free: 97.83 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.011, allocations: 1.062 kB / 0.5065 GB, free: 97.83 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/1.011, allocations: 7.938 kB / 0.5065 GB, free: 97.82 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004413/1.015, allocations: 1.662 MB / 0.5081 GB, free: 97.32 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/1.016, allocations: 6.766 kB / 0.5081 GB, free: 97.32 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008911/1.016, allocations: 103.8 kB / 0.5082 GB, free: 97.32 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000263/1.017, allocations: 46.09 kB / 0.5082 GB, free: 97.3 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-05/1.017, allocations: 10.27 kB / 0.5082 GB, free: 97.3 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001891/1.019, allocations: 2.455 MB / 0.5106 GB, free: 94.92 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.214e-05/1.019, allocations: 6.312 kB / 0.5106 GB, free: 94.92 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002123/1.021, allocations: 1.009 MB / 0.5116 GB, free: 94.32 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007897/1.022, allocations: 235.5 kB / 0.5119 GB, free: 94.17 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/1.022, allocations: 6.484 kB / 0.5119 GB, free: 94.17 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009177/1.023, allocations: 25.53 kB / 0.5119 GB, free: 94.17 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/1.023, allocations: 57.17 kB / 0.5119 GB, free: 94.17 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.744e-05/1.023, allocations: 20.19 kB / 0.512 GB, free: 94.17 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001492/1.025, allocations: 0.6103 MB / 0.5126 GB, free: 94.06 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.01e-07/1.025, allocations: 2.078 kB / 0.5126 GB, free: 94.06 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002457/1.027, allocations: 278.2 kB / 0.5128 GB, free: 94.06 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000763/1.028, allocations: 272.2 kB / 0.5131 GB, free: 93.97 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002266/1.03, allocations: 0.8138 MB / 0.5139 GB, free: 93.71 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/1.03, allocations: 1.312 kB / 0.5139 GB, free: 93.71 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/1.032, allocations: 418.7 kB / 0.5143 GB, free: 93.5 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002733/1.034, allocations: 269.1 kB / 0.5145 GB, free: 93.49 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006589/1.041, allocations: 1.895 MB / 0.5164 GB, free: 92.69 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/1.042, allocations: 1.211 MB / 0.5176 GB, free: 91.96 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/1.043, allocations: 84.25 kB / 0.5176 GB, free: 91.95 MB / 395.1 MB Notification: Performance of SimCode: time 1.432e-06/1.043, allocations: 4 kB / 0.5177 GB, free: 91.95 MB / 395.1 MB Notification: Performance of Templates: time 0.05543/1.098, allocations: 29.75 MB / 0.5467 GB, free: 87.36 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches