Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009987/0.0009987, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 226.6 MB / 244.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008246/0.0008248, allocations: 100.3 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001927/0.0001927, allocations: 4 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2192, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.005469/0.2247, allocations: 7.135 MB / 414.6 MB, free: 20.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003331/0.2281, allocations: 2.496 MB / 417.1 MB, free: 18.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004471/0.2286, allocations: 23.94 kB / 417.1 MB, free: 18.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009258/0.2295, allocations: 469.4 kB / 417.6 MB, free: 17.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005779/0.2301, allocations: 385.1 kB / 418 MB, free: 17.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.2304, allocations: 151.8 kB / 418.1 MB, free: 17.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008137/0.2312, allocations: 1.331 MB / 419.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004644/0.2317, allocations: 431.2 kB / 419.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004453/0.2321, allocations: 457.9 kB / 420.3 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000399/0.2325, allocations: 0.5016 MB / 420.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.948e-05/0.2326, allocations: 64 kB / 420.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.2329, allocations: 107.9 kB / 421 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.611e-05/0.233, allocations: 191 kB / 421.2 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.2331, allocations: 261.1 kB / 421.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00078/0.2339, allocations: 1.348 MB / 422.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2339, allocations: 0 / 422.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2339, allocations: 0 / 422.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.2339, allocations: 0 / 422.8 MB, free: 12.48 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.001666/0.2356, allocations: 1.262 MB / 424.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.2357, allocations: 8.031 kB / 424.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000568/0.2362, allocations: 194.3 kB / 424.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008164/0.2371, allocations: 0.703 MB / 425 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.2371, allocations: 77.95 kB / 425 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.2372, allocations: 99.91 kB / 425.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.2385, allocations: 0.9268 MB / 426.1 MB, free: 9.098 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.82e-05/0.2385, allocations: 11.92 kB / 426.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.557e-05/0.2386, allocations: 40 kB / 426.1 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.2386, allocations: 24 kB / 426.1 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009713/0.2396, allocations: 0.6364 MB / 426.8 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.2432, allocations: 3.934 MB / 430.7 MB, free: 4.223 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/0.2438, allocations: 448.4 kB / 431.1 MB, free: 3.762 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/0.2443, allocations: 261.3 kB / 431.4 MB, free: 3.504 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.2443, allocations: 8.328 kB / 431.4 MB, free: 3.496 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.2443, allocations: 38.89 kB / 431.4 MB, free: 3.449 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.824e-06/0.2444, allocations: 0 / 431.4 MB, free: 3.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.002126/0.2465, allocations: 1.417 MB / 432.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.2465, allocations: 89.09 kB / 432.9 MB, free: 1.852 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000798/0.2473, allocations: 0.8096 MB / 433.8 MB, free: 1.035 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.2474, allocations: 37.7 kB / 433.8 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.2476, allocations: 0.5525 MB / 434.3 MB, free: 440 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.064e-05/0.2477, allocations: 165.7 kB / 434.5 MB, free: 272 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.2477, allocations: 16 kB / 434.5 MB, free: 256 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.2479, allocations: 337.9 kB / 434.8 MB, free: 15.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.2482, allocations: 165.9 kB / 435 MB, free: 15.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005617/0.2488, allocations: 464 kB / 435.5 MB, free: 15.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.2492, allocations: 241.5 kB / 435.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.2492, allocations: 11.94 kB / 435.7 MB, free: 14.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001286/0.2505, allocations: 0.7634 MB / 436.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.2506, allocations: 11.94 kB / 436.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.2506, allocations: 8 kB / 436.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002804/0.2509, allocations: 89.92 kB / 436.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004783/0.2514, allocations: 151.8 kB / 436.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00236/0.2537, allocations: 2.872 MB / 439.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005103/0.2543, allocations: 39.94 kB / 439.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/0.2543, allocations: 36.06 kB / 439.7 MB, free: 10.67 MB / 314.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.0003812/0.2547, allocations: 257.6 kB / 439.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.2548, allocations: 86.88 kB / 440 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008586/0.2557, allocations: 495.4 kB / 440.5 MB, free: 9.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.2557, allocations: 4 kB / 440.5 MB, free: 9.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2557, allocations: 4 kB / 440.5 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.2557, allocations: 3.984 kB / 440.5 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001941/0.2577, allocations: 1.438 MB / 441.9 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.2577, allocations: 4 kB / 441.9 MB, free: 8.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.258, allocations: 80.11 kB / 442 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000188/0.2582, allocations: 69.8 kB / 442.1 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.2582, allocations: 16 kB / 442.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002209/0.2604, allocations: 2.845 MB / 445 MB, free: 4.996 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.2604, allocations: 7.969 kB / 445 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.2616, allocations: 0.7805 MB / 445.7 MB, free: 4.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002254/0.2619, allocations: 200.1 kB / 445.9 MB, free: 3.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.331e-05/0.2619, allocations: 15.94 kB / 446 MB, free: 3.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000389/0.2623, allocations: 31.98 kB / 446 MB, free: 3.898 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.27e-05/0.2624, allocations: 35.89 kB / 446 MB, free: 3.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.2624, allocations: 16.12 kB / 446 MB, free: 3.848 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007188/0.2632, allocations: 0.5537 MB / 446.6 MB, free: 3.301 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2632, allocations: 0 / 446.6 MB, free: 3.301 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007365/0.2639, allocations: 204 kB / 446.8 MB, free: 3.102 MB / 314.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.0002209/0.2642, allocations: 127.7 kB / 446.9 MB, free: 2.969 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.2653, allocations: 0.6892 MB / 447.6 MB, free: 2.254 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2653, allocations: 5.938 kB / 447.6 MB, free: 2.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006258/0.2659, allocations: 445.2 kB / 448 MB, free: 1.789 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.2669, allocations: 223 kB / 448.3 MB, free: 1.578 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/0.2699, allocations: 2.147 MB / 450.4 MB, free: 15.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/0.2705, allocations: 1.001 MB / 451.4 MB, free: 14.35 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.2706, allocations: 59.42 kB / 451.5 MB, free: 14.29 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2706, allocations: 0 / 451.5 MB, free: 14.29 MB / 330.7 MB Notification: Performance of Templates: time 0.02207/0.2927, allocations: 20.74 MB / 472.2 MB, free: 9.582 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches