Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009638/0.0009637, allocations: 190.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.6 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007699/0.0007699, allocations: 95.75 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000218/0.000218, allocations: 4 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1834, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.0175/0.2009, allocations: 16.74 MB / 424.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.2113, allocations: 5.399 MB / 430.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002435/0.2137, allocations: 63.81 kB / 430.3 MB, free: 5.453 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003116/0.2169, allocations: 1.06 MB / 431.3 MB, free: 4.387 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00252/0.2194, allocations: 0.9848 MB / 432.3 MB, free: 3.395 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.2204, allocations: 423.5 kB / 432.7 MB, free: 2.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003228/0.2237, allocations: 3.643 MB / 436.4 MB, free: 15.32 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001833/0.2255, allocations: 1.346 MB / 437.7 MB, free: 13.93 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001524/0.2271, allocations: 1.167 MB / 438.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001323/0.2284, allocations: 1.298 MB / 440.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002676/0.2287, allocations: 176 kB / 440.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004924/0.2292, allocations: 208 kB / 440.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003507/0.2295, allocations: 0.4976 MB / 441 MB, free: 10.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001232/0.2308, allocations: 1.491 MB / 442.5 MB, free: 9.07 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002713/0.2335, allocations: 3.63 MB / 446.2 MB, free: 5.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.2335, allocations: 0 / 446.2 MB, free: 5.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2335, allocations: 0 / 446.2 MB, free: 5.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.757e-05/0.2336, allocations: 0 / 446.2 MB, free: 5.43 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.004187/0.2378, allocations: 2.806 MB / 449 MB, free: 2.559 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.2378, allocations: 8.031 kB / 449 MB, free: 2.551 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001359/0.2392, allocations: 496 kB / 449.5 MB, free: 2.062 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.2415, allocations: 1.703 MB / 451.2 MB, free: 312 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.2417, allocations: 189.2 kB / 451.3 MB, free: 120 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002829/0.2419, allocations: 267.8 kB / 451.6 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00492/0.2469, allocations: 2.454 MB / 454.1 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.271e-05/0.247, allocations: 11.84 kB / 454.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001872/0.2472, allocations: 108 kB / 454.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.976e-05/0.2472, allocations: 71.94 kB / 454.3 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003044/0.2503, allocations: 1.642 MB / 455.9 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01315/0.2635, allocations: 10.71 MB / 466.6 MB, free: 152 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.2649, allocations: 1.057 MB / 467.7 MB, free: 14.99 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005806/0.2655, allocations: 367.4 kB / 468 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.074e-05/0.2655, allocations: 12.66 kB / 468 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.2656, allocations: 47.16 kB / 468.1 MB, free: 14.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 3.337e-06/0.2656, allocations: 0 / 468.1 MB, free: 14.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.005039/0.2706, allocations: 2.958 MB / 471 MB, free: 11.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.2707, allocations: 167.2 kB / 471.2 MB, free: 11.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002904/0.2736, allocations: 2.178 MB / 473.4 MB, free: 9.078 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.209e-05/0.2737, allocations: 45.64 kB / 473.4 MB, free: 9.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009872/0.2747, allocations: 1.474 MB / 474.9 MB, free: 7.531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002314/0.2749, allocations: 335.4 kB / 475.2 MB, free: 7.199 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-05/0.275, allocations: 36 kB / 475.3 MB, free: 7.164 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.2751, allocations: 373.8 kB / 475.6 MB, free: 6.793 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000658/0.2758, allocations: 367.8 kB / 476 MB, free: 6.434 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.277, allocations: 1.242 MB / 477.2 MB, free: 4.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/0.279, allocations: 1.726 MB / 479 MB, free: 2.629 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.279, allocations: 8 kB / 479 MB, free: 2.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00303/0.282, allocations: 1.834 MB / 480.8 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006142/0.2827, allocations: 0.9654 MB / 481.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/0.2827, allocations: 31.94 kB / 481.8 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005042/0.2832, allocations: 155.4 kB / 481.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.2843, allocations: 419.4 kB / 482.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003496/0.2879, allocations: 5.356 MB / 487.7 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.2893, allocations: 100 kB / 487.8 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.2895, allocations: 96 kB / 487.9 MB, free: 8.695 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/0.2895, allocations: 4 kB / 487.9 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002307/0.2918, allocations: 1.578 MB / 489.5 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.2918, allocations: 32.19 kB / 489.5 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004304/0.2923, allocations: 147.4 kB / 489.7 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.2933, allocations: 415.2 kB / 490.1 MB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003437/0.2968, allocations: 5.34 MB / 495.4 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.2983, allocations: 87.88 kB / 495.5 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-05/0.2984, allocations: 88 kB / 495.6 MB, free: 476 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001006/0.2994, allocations: 0.5902 MB / 496.2 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002767/0.2997, allocations: 229.1 kB / 496.4 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001552/0.3012, allocations: 0.9263 MB / 497.3 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.3013, allocations: 11.94 kB / 497.3 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3013, allocations: 0 / 497.3 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3013, allocations: 7.984 kB / 497.3 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004292/0.3056, allocations: 3.136 MB / 0.4887 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.3056, allocations: 8.062 kB / 0.4887 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000578/0.3062, allocations: 167.7 kB / 0.4889 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003722/0.3066, allocations: 123.9 kB / 0.489 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.3066, allocations: 24 kB / 0.489 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00335/0.31, allocations: 5.316 MB / 0.4942 GB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/0.31, allocations: 8 kB / 0.4942 GB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.3122, allocations: 1.51 MB / 0.4957 GB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006789/0.3129, allocations: 382.2 kB / 0.4961 GB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002153/0.3131, allocations: 31.97 kB / 0.4961 GB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008234/0.314, allocations: 59.95 kB / 0.4962 GB, free: 3.102 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.3141, allocations: 80.23 kB / 0.4963 GB, free: 3.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.647e-05/0.3142, allocations: 35.94 kB / 0.4963 GB, free: 2.988 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002039/0.3162, allocations: 1.438 MB / 0.4977 GB, free: 1.539 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3162, allocations: 0 / 0.4977 GB, free: 1.539 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002654/0.3189, allocations: 0.9375 MB / 0.4986 GB, free: 0.6016 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002257/0.3191, allocations: 147 kB / 0.4987 GB, free: 456 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1482/0.4673, allocations: 2.699 MB / 0.5014 GB, free: 87.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/0.4673, allocations: 1.875 kB / 0.5014 GB, free: 87.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009453/0.4683, allocations: 0.8252 MB / 0.5022 GB, free: 86.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004132/0.4724, allocations: 0.5572 MB / 0.5027 GB, free: 86.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005795/0.4782, allocations: 5.142 MB / 0.5078 GB, free: 84.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008578/0.4791, allocations: 1.57 MB / 0.5093 GB, free: 83.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003502/0.4795, allocations: 148 kB / 0.5094 GB, free: 83.24 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4795, allocations: 3.781 kB / 0.5094 GB, free: 83.24 MB / 378.7 MB Notification: Performance of Templates: time 0.057/0.5365, allocations: 78.2 MB / 0.5858 GB, free: 10.48 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches