Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001636/0.001636, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002023/0.002023, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 55.91 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.08487, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007675/0.09258, allocations: 7.146 MB / 364.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003448/0.09606, allocations: 2.388 MB / 367.1 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005595/0.09664, allocations: 19.94 kB / 367.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.09788, allocations: 0.4892 MB / 367.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008494/0.09875, allocations: 377 kB / 368 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.09915, allocations: 207.8 kB / 368.2 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.1003, allocations: 1.201 MB / 369.4 MB, free: 2.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006307/0.101, allocations: 0.5115 MB / 369.9 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000592/0.1016, allocations: 454.2 kB / 370.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005561/0.1021, allocations: 0.4899 MB / 370.9 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.1023, allocations: 112 kB / 371 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002818/0.1026, allocations: 152 kB / 371.1 MB, free: 420 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.1027, allocations: 231.2 kB / 371.3 MB, free: 188 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.138/0.2408, allocations: 0.5379 MB / 371.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.2423, allocations: 1.41 MB / 373.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2423, allocations: 0.5312 kB / 373.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2423, allocations: 2.031 kB / 373.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.817e-05/0.2424, allocations: 0 / 373.3 MB, free: 11.62 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001807/0.2442, allocations: 1.247 MB / 374.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.2442, allocations: 13.75 kB / 374.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001374/0.2444, allocations: 125.2 kB / 374.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004895/0.2449, allocations: 148.7 kB / 374.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007999/0.2457, allocations: 0.6374 MB / 375.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.274e-05/0.2457, allocations: 60.41 kB / 375.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.2458, allocations: 81.52 kB / 375.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.2471, allocations: 0.7827 MB / 376.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.2471, allocations: 6.312 kB / 376.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-05/0.2472, allocations: 31.56 kB / 376.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.2472, allocations: 20.33 kB / 376.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009891/0.2482, allocations: 0.5187 MB / 376.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003482/0.2517, allocations: 3.394 MB / 380.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004813/0.2522, allocations: 228.6 kB / 380.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.2524, allocations: 121.2 kB / 380.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.2525, allocations: 5.906 kB / 380.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.2525, allocations: 38.73 kB / 380.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.2525, allocations: 0 / 380.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.00187/0.2544, allocations: 1.046 MB / 381.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.2544, allocations: 82.03 kB / 381.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008538/0.2553, allocations: 0.7315 MB / 382.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.2553, allocations: 33.64 kB / 382.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002177/0.2555, allocations: 0.4899 MB / 383.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.494e-05/0.2556, allocations: 105.5 kB / 383.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.2557, allocations: 112 kB / 383.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.663e-05/0.2558, allocations: 383.4 kB / 383.7 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.2561, allocations: 123.1 kB / 383.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003531/0.2565, allocations: 416.6 kB / 384.2 MB, free: 5.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006081/0.2571, allocations: 0.5739 MB / 384.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.2571, allocations: 2.75 kB / 384.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009856/0.2581, allocations: 0.6087 MB / 385.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2581, allocations: 9.625 kB / 385.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.2581, allocations: 10.72 kB / 385.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000135/0.2583, allocations: 36.92 kB / 385.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004299/0.2587, allocations: 140.8 kB / 385.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006793/0.2594, allocations: 1.394 MB / 387 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004423/0.2599, allocations: 33.98 kB / 387 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.646e-05/0.2599, allocations: 32.05 kB / 387.1 MB, free: 3.781 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.000262/0.2602, allocations: 243.3 kB / 387.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-05/0.2603, allocations: 77.03 kB / 387.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006043/0.2609, allocations: 328.9 kB / 387.7 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.2609, allocations: 3.375 kB / 387.7 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.2609, allocations: 5 kB / 387.7 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2609, allocations: 1.781 kB / 387.7 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.2624, allocations: 1.097 MB / 388.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.2624, allocations: 2.219 kB / 388.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.2627, allocations: 61.11 kB / 388.9 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.582e-05/0.2628, allocations: 19.44 kB / 388.9 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.2628, allocations: 11.72 kB / 388.9 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005731/0.2634, allocations: 1.377 MB / 390.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2634, allocations: 2.156 kB / 390.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007836/0.2642, allocations: 0.5467 MB / 390.8 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.2644, allocations: 177.6 kB / 391 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.585e-05/0.2645, allocations: 7.75 kB / 391 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.2648, allocations: 19.44 kB / 391 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.689e-05/0.2649, allocations: 29.69 kB / 391 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.2649, allocations: 10.78 kB / 391.1 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005793/0.2655, allocations: 0.4998 MB / 391.6 MB, free: 0.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2655, allocations: 1.031 kB / 391.6 MB, free: 0.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006645/0.2661, allocations: 157.5 kB / 391.7 MB, free: 0.5703 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * 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.001077/0.2672, allocations: 1.13 MB / 392.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000861/0.2681, allocations: 480.2 kB / 393.3 MB, free: 15.47 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2681, allocations: 1.031 kB / 393.3 MB, free: 15.47 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003576/0.2685, allocations: 233.9 kB / 393.5 MB, free: 15.33 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000949/0.2694, allocations: 182.7 kB / 393.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008351/0.2778, allocations: 6.635 MB / 400.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005767/0.2784, allocations: 0.9398 MB / 401.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003804/0.2788, allocations: 85.17 kB / 401.4 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003678/0.2792, allocations: 302.4 kB / 401.7 MB, free: 9.949 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2792, allocations: 1.344 kB / 401.7 MB, free: 9.949 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03931/0.3185, allocations: 15.12 MB / 416.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.097/9.415, allocations: 7.328 kB / 416.8 MB, free: 13.41 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches