Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007608/0.0007609, allocations: 94.77 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008826/0.0008826, allocations: 202.5 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.102/1.102, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001741/0.0001741, allocations: 7.984 kB / 307.7 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07178/0.07196, allocations: 51.52 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006628/0.07862, allocations: 7.65 MB / 366.9 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002889/0.08152, allocations: 2.672 MB / 369.6 MB, free: 2.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003132/0.08185, allocations: 23.94 kB / 369.6 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008906/0.08275, allocations: 477.4 kB / 370.1 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006003/0.08336, allocations: 377.3 kB / 370.4 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004769/0.08384, allocations: 319 kB / 370.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.08491, allocations: 1.417 MB / 372.2 MB, free: 328 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1147/0.1997, allocations: 0.5184 MB / 372.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007494/0.2004, allocations: 467.5 kB / 373.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004755/0.2009, allocations: 0.5147 MB / 373.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.201, allocations: 61.72 kB / 373.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002485/0.2013, allocations: 103.4 kB / 373.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.2014, allocations: 194.8 kB / 374 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004305/0.2019, allocations: 0.5961 MB / 374.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.2031, allocations: 1.592 MB / 376.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2031, allocations: 0.5625 kB / 376.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2031, allocations: 0 / 376.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.2032, allocations: 0 / 376.2 MB, free: 10.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001683/0.2049, allocations: 1.311 MB / 377.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.2049, allocations: 9.75 kB / 377.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005115/0.2054, allocations: 192.9 kB / 377.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000843/0.2063, allocations: 0.7722 MB / 378.5 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.2063, allocations: 74.12 kB / 378.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.2064, allocations: 101.8 kB / 378.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.2077, allocations: 0.9679 MB / 379.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.982e-05/0.2078, allocations: 4.297 kB / 379.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.752e-05/0.2078, allocations: 39.78 kB / 379.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.2079, allocations: 23.81 kB / 379.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.2089, allocations: 0.6521 MB / 380.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00385/0.2127, allocations: 4.138 MB / 384.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008489/0.2136, allocations: 469.2 kB / 384.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/0.2138, allocations: 171.3 kB / 385.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.2139, allocations: 4.922 kB / 385.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.2139, allocations: 36.59 kB / 385.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.352e-06/0.2139, allocations: 0 / 385.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.001807/0.2157, allocations: 1.349 MB / 386.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.2158, allocations: 141.4 kB / 386.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000898/0.2167, allocations: 0.893 MB / 387.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.2167, allocations: 39.05 kB / 387.6 MB, free: 4.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.217, allocations: 0.5916 MB / 388.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.782e-05/0.217, allocations: 147.4 kB / 388.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.904e-05/0.2171, allocations: 63.28 kB / 388.3 MB, free: 4.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.689e-05/0.2171, allocations: 334.6 kB / 388.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.2174, allocations: 170.3 kB / 388.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003703/0.2178, allocations: 0.5067 MB / 389.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006487/0.2185, allocations: 0.6928 MB / 390 MB, free: 2.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.2185, allocations: 7.688 kB / 390 MB, free: 2.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009885/0.2195, allocations: 0.7508 MB / 390.8 MB, free: 2.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.2196, allocations: 400.5 kB / 391.2 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.2196, allocations: 14.59 kB / 391.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001142/0.2197, allocations: 36.64 kB / 391.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004709/0.2202, allocations: 171.3 kB / 391.4 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005467/0.2208, allocations: 1.288 MB / 392.7 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004492/0.2212, allocations: 45.38 kB / 392.7 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/0.2213, allocations: 34.41 kB / 392.8 MB, free: 0.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.2213, allocations: 11.47 kB / 392.8 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007764/0.2221, allocations: 0.6124 MB / 393.4 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.2221, allocations: 16.3 kB / 393.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.596e-05/0.2222, allocations: 33.38 kB / 393.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.2226, allocations: 167.7 kB / 393.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00063/0.2232, allocations: 1.29 MB / 394.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003985/0.2237, allocations: 33.08 kB / 394.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.2237, allocations: 33.81 kB / 395 MB, free: 15.21 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003096/0.224, allocations: 345.2 kB / 395.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.2241, allocations: 91.31 kB / 395.4 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007037/0.2248, allocations: 449 kB / 395.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2249, allocations: 8.062 kB / 395.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.2249, allocations: 1.375 kB / 395.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2249, allocations: 2.766 kB / 395.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/0.2266, allocations: 1.402 MB / 397.2 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.2266, allocations: 5.359 kB / 397.2 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.2269, allocations: 82.41 kB / 397.3 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.44e-05/0.227, allocations: 19.47 kB / 397.3 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.227, allocations: 13.5 kB / 397.4 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000688/0.2277, allocations: 1.27 MB / 398.6 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.2277, allocations: 10.62 kB / 398.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009051/0.2286, allocations: 0.7295 MB / 399.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/0.2289, allocations: 207.4 kB / 399.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.909e-05/0.229, allocations: 8.125 kB / 399.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003688/0.2293, allocations: 36.25 kB / 399.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.145e-05/0.2294, allocations: 27.56 kB / 399.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.2294, allocations: 9.469 kB / 399.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000675/0.2301, allocations: 0.6087 MB / 400.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2301, allocations: 0 / 400.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009357/0.231, allocations: 355.7 kB / 400.6 MB, free: 11.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000157/0.2312, allocations: 117.1 kB / 400.7 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.2324, allocations: 0.9862 MB / 401.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2324, allocations: 3.688 kB / 401.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003195/0.2328, allocations: 282 kB / 402 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.2339, allocations: 231.2 kB / 402.2 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.2363, allocations: 2.336 MB / 404.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.2367, allocations: 1.022 MB / 405.6 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004243/0.2371, allocations: 126.1 kB / 405.7 MB, free: 7.785 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.2373, allocations: 59.09 kB / 405.8 MB, free: 7.777 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2373, allocations: 0 / 405.8 MB, free: 7.777 MB / 318.1 MB Notification: Performance of Templates: time 0.01451/0.2518, allocations: 10.1 MB / 415.9 MB, free: 14.5 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches