Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001592/0.001592, allocations: 196.6 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007507/0.0007506, allocations: 100 kB / 299.9 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002557, allocations: 4 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1893, allocations: 51.41 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.005399/0.1947, allocations: 7.217 MB / 419.3 MB, free: 18.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002955/0.1977, allocations: 2.984 MB / 422.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004278/0.1981, allocations: 27.94 kB / 422.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00092/0.199, allocations: 477.4 kB / 422.8 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006109/0.1997, allocations: 369.4 kB / 423.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005039/0.2002, allocations: 327.6 kB / 423.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008964/0.2011, allocations: 1.413 MB / 424.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005609/0.2016, allocations: 0.5252 MB / 425.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004122/0.2021, allocations: 465.6 kB / 425.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003707/0.2024, allocations: 0.5011 MB / 426.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.385e-05/0.2026, allocations: 68 kB / 426.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.2028, allocations: 108 kB / 426.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.2029, allocations: 194.9 kB / 426.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003407/0.2033, allocations: 0.5961 MB / 427.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009261/0.2042, allocations: 1.595 MB / 428.9 MB, free: 8.891 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2042, allocations: 3.984 kB / 428.9 MB, free: 8.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2042, allocations: 0 / 428.9 MB, free: 8.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.2042, allocations: 0 / 428.9 MB, free: 8.887 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001663/0.2059, allocations: 1.297 MB / 430.2 MB, free: 7.535 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2059, allocations: 8.031 kB / 430.2 MB, free: 7.527 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005198/0.2065, allocations: 195.2 kB / 430.4 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008775/0.2074, allocations: 0.7744 MB / 431.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.2074, allocations: 78.12 kB / 431.2 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.2075, allocations: 99.91 kB / 431.3 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.2088, allocations: 0.9497 MB / 432.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/0.2089, allocations: 15.94 kB / 432.3 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.537e-05/0.2089, allocations: 36 kB / 432.3 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.209, allocations: 24 kB / 432.4 MB, free: 5.281 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009827/0.2099, allocations: 0.6402 MB / 433 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003773/0.2137, allocations: 4.146 MB / 437.1 MB, free: 276 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009201/0.2147, allocations: 456.7 kB / 437.6 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.215, allocations: 172.7 kB / 437.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.215, allocations: 4 kB / 437.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.215, allocations: 42.56 kB / 437.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 1.833e-06/0.215, allocations: 0 / 437.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.002254/0.2173, allocations: 1.346 MB / 439.1 MB, free: 14.17 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.2174, allocations: 110.8 kB / 439.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.2184, allocations: 0.878 MB / 440.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.2185, allocations: 37.7 kB / 440.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003896/0.2189, allocations: 0.5876 MB / 440.8 MB, free: 12.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.838e-05/0.219, allocations: 149.9 kB / 440.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.63e-05/0.219, allocations: 12 kB / 440.9 MB, free: 12.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.2191, allocations: 337.9 kB / 441.2 MB, free: 12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/0.2195, allocations: 169.9 kB / 441.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005224/0.22, allocations: 0.4899 MB / 441.9 MB, free: 11.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008615/0.2209, allocations: 0.6946 MB / 442.6 MB, free: 10.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.2209, allocations: 4 kB / 442.6 MB, free: 10.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001153/0.222, allocations: 0.747 MB / 443.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002457/0.2223, allocations: 404.7 kB / 443.7 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.2223, allocations: 8 kB / 443.7 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001405/0.2225, allocations: 36.84 kB / 443.8 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005663/0.2231, allocations: 167.7 kB / 443.9 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009302/0.224, allocations: 1.299 MB / 445.2 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.2245, allocations: 51.98 kB / 445.3 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.461e-05/0.2246, allocations: 35.98 kB / 445.3 MB, free: 7.316 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.552e-06/0.2246, allocations: 4 kB / 445.3 MB, free: 7.312 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009229/0.2255, allocations: 0.602 MB / 445.9 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.2255, allocations: 8 kB / 445.9 MB, free: 6.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.208e-05/0.2256, allocations: 36.84 kB / 446 MB, free: 6.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005239/0.2262, allocations: 168.1 kB / 446.1 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008694/0.227, allocations: 1.284 MB / 447.4 MB, free: 5.082 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000452/0.2275, allocations: 47.94 kB / 447.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.2276, allocations: 32 kB / 447.5 MB, free: 5.004 MB / 314.7 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.0004112/0.228, allocations: 336.8 kB / 447.8 MB, free: 4.664 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.2281, allocations: 94.86 kB / 447.9 MB, free: 4.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007828/0.2289, allocations: 451.4 kB / 448.4 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2289, allocations: 4 kB / 448.4 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.2289, allocations: 0 / 448.4 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.2289, allocations: 7.984 kB / 448.4 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.2308, allocations: 1.386 MB / 449.8 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2308, allocations: 0 / 449.8 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.2312, allocations: 75.91 kB / 449.8 MB, free: 2.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.974e-05/0.2312, allocations: 32.78 kB / 449.9 MB, free: 2.535 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.2313, allocations: 15.94 kB / 449.9 MB, free: 2.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000826/0.2321, allocations: 1.284 MB / 451.2 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2321, allocations: 0 / 451.2 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009975/0.2331, allocations: 0.7282 MB / 451.9 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/0.2334, allocations: 208 kB / 452.1 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.539e-05/0.2335, allocations: 11.94 kB / 452.1 MB, free: 100 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000388/0.2339, allocations: 23.98 kB / 452.1 MB, free: 76 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.234, allocations: 23.97 kB / 452.2 MB, free: 52 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.234, allocations: 15.98 kB / 452.2 MB, free: 36 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007921/0.2348, allocations: 0.6054 MB / 452.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2348, allocations: 0 / 452.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001012/0.2358, allocations: 355.9 kB / 453.1 MB, free: 15.07 MB / 330.7 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.0001875/0.236, allocations: 123.1 kB / 453.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.2375, allocations: 0.9822 MB / 454.2 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2375, allocations: 0 / 454.2 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004004/0.2379, allocations: 292.7 kB / 454.5 MB, free: 13.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.2392, allocations: 227.7 kB / 454.7 MB, free: 13.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.2421, allocations: 2.339 MB / 457.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005925/0.2428, allocations: 1.017 MB / 458.1 MB, free: 9.969 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005008/0.2433, allocations: 127.3 kB / 458.2 MB, free: 9.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.2434, allocations: 63.38 kB / 458.3 MB, free: 9.777 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2434, allocations: 0 / 458.3 MB, free: 9.777 MB / 330.7 MB Notification: Performance of Templates: time 0.0179/0.2613, allocations: 10.07 MB / 468.4 MB, free: 15.82 MB / 346.7 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","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches