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.0009454/0.0009453, allocations: 175.5 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008541/0.0008542, allocations: 93.3 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003017/0.0003018, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2021, allocations: 47.57 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006264/0.2084, allocations: 7.089 MB / 382.2 MB, free: 39.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004044/0.2125, allocations: 2.491 MB / 384.7 MB, free: 37.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.2136, allocations: 23.09 kB / 384.7 MB, free: 37.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.2149, allocations: 470.6 kB / 385.2 MB, free: 37.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001198/0.2162, allocations: 383.9 kB / 385.5 MB, free: 37.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003912/0.2166, allocations: 154.7 kB / 385.7 MB, free: 37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.2179, allocations: 1.369 MB / 387.1 MB, free: 36.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006818/0.2186, allocations: 0.4948 MB / 387.6 MB, free: 35.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006772/0.2193, allocations: 451.9 kB / 388 MB, free: 35.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005312/0.2199, allocations: 0.4975 MB / 388.5 MB, free: 35.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.518e-05/0.22, allocations: 64 kB / 388.6 MB, free: 35.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002721/0.2202, allocations: 104 kB / 388.7 MB, free: 35.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.2204, allocations: 187.1 kB / 388.8 MB, free: 34.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003695/0.2207, allocations: 0.5771 MB / 389.4 MB, free: 34.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007926/0.2215, allocations: 1.352 MB / 390.8 MB, free: 32.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2215, allocations: 0 / 390.8 MB, free: 32.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2216, allocations: 0 / 390.8 MB, free: 32.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.2216, allocations: 0 / 390.8 MB, free: 32.97 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001705/0.2233, allocations: 1.258 MB / 392 MB, free: 31.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.2234, allocations: 8.031 kB / 392 MB, free: 31.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005624/0.2239, allocations: 183.4 kB / 392.2 MB, free: 31.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00092/0.2249, allocations: 0.7346 MB / 392.9 MB, free: 30.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.169e-05/0.2249, allocations: 74 kB / 393 MB, free: 30.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.225, allocations: 96 kB / 393.1 MB, free: 30.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.2264, allocations: 0.9346 MB / 394 MB, free: 29.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.097e-05/0.2264, allocations: 7.906 kB / 394.1 MB, free: 29.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/0.2265, allocations: 40 kB / 394.1 MB, free: 29.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.2265, allocations: 24 kB / 394.1 MB, free: 29.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.2276, allocations: 0.6364 MB / 394.8 MB, free: 28.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003981/0.2316, allocations: 3.957 MB / 398.7 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005608/0.2321, allocations: 440.7 kB / 399.1 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004631/0.2326, allocations: 265.7 kB / 399.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.2327, allocations: 8.312 kB / 399.4 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.2327, allocations: 38.83 kB / 399.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 3.416e-06/0.2327, allocations: 0 / 399.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.002251/0.235, allocations: 1.419 MB / 400.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.235, allocations: 89.05 kB / 401 MB, free: 22.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008672/0.2359, allocations: 0.8097 MB / 401.8 MB, free: 21.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.2359, allocations: 41.69 kB / 401.8 MB, free: 21.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002385/0.2362, allocations: 0.5564 MB / 402.4 MB, free: 20.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.831e-05/0.2362, allocations: 149.8 kB / 402.5 MB, free: 20.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/0.2363, allocations: 16 kB / 402.5 MB, free: 20.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.193e-05/0.2363, allocations: 341.9 kB / 402.9 MB, free: 20.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002841/0.2366, allocations: 161.9 kB / 403 MB, free: 20.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/0.237, allocations: 471.9 kB / 403.5 MB, free: 19.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006873/0.2377, allocations: 0.6661 MB / 404.1 MB, free: 18.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2377, allocations: 4 kB / 404.1 MB, free: 18.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001116/0.2388, allocations: 0.7667 MB / 404.9 MB, free: 18.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.2389, allocations: 8 kB / 404.9 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.2389, allocations: 12 kB / 404.9 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/0.2392, allocations: 81.92 kB / 405 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000481/0.2397, allocations: 155.8 kB / 405.2 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/0.2413, allocations: 2.88 MB / 408 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006141/0.2419, allocations: 43.95 kB / 408.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/0.242, allocations: 35.94 kB / 408.1 MB, free: 14.55 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 (84): * Single equations (assignments): 82 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003808/0.2423, allocations: 254.5 kB / 408.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.2425, allocations: 86.97 kB / 408.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007905/0.2433, allocations: 0.4916 MB / 408.9 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.2433, allocations: 8 kB / 409 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2433, allocations: 0 / 409 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.2433, allocations: 3.984 kB / 409 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001764/0.2451, allocations: 1.444 MB / 410.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.2451, allocations: 4 kB / 410.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.2454, allocations: 80.05 kB / 410.5 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/0.2456, allocations: 77.61 kB / 410.6 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.2456, allocations: 8 kB / 410.6 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001507/0.2471, allocations: 2.856 MB / 413.4 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2471, allocations: 0 / 413.4 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.2482, allocations: 0.7809 MB / 414.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.2485, allocations: 192.1 kB / 414.4 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.807e-05/0.2486, allocations: 23.98 kB / 414.4 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.249, allocations: 27.92 kB / 414.4 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.315e-05/0.2491, allocations: 31.95 kB / 414.5 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.2491, allocations: 16 kB / 414.5 MB, free: 7.734 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000617/0.2497, allocations: 0.5576 MB / 415 MB, free: 7.184 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.2497, allocations: 0 / 415 MB, free: 7.184 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007549/0.2505, allocations: 207.9 kB / 415.2 MB, free: 6.98 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 (38): * Single equations (assignments): 36 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001736/0.2507, allocations: 123.1 kB / 415.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009592/0.2516, allocations: 0.6871 MB / 416.1 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.2517, allocations: 0 / 416.1 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004979/0.2522, allocations: 446.3 kB / 416.5 MB, free: 5.676 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.2533, allocations: 219.2 kB / 416.7 MB, free: 5.461 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.2558, allocations: 2.136 MB / 418.8 MB, free: 3.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.2562, allocations: 0.997 MB / 419.8 MB, free: 2.242 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.2563, allocations: 59.44 kB / 419.9 MB, free: 2.188 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2564, allocations: 0 / 419.9 MB, free: 2.188 MB / 298.7 MB Notification: Performance of Templates: time 0.02646/0.2828, allocations: 20.72 MB / 440.6 MB, free: 13.46 MB / 330.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/jenkins/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