Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 51.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3258, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009742/0.3355, allocations: 7.131 MB / 407.4 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00469/0.3403, allocations: 2.348 MB / 409.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007109/0.341, allocations: 20 kB / 409.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001443/0.3426, allocations: 493 kB / 410.2 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.3436, allocations: 381 kB / 410.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.344, allocations: 215.7 kB / 410.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001448/0.3455, allocations: 1.201 MB / 412 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007816/0.3463, allocations: 0.4998 MB / 412.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006785/0.347, allocations: 462.1 kB / 413 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006049/0.3476, allocations: 497.8 kB / 413.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001448/0.3477, allocations: 112 kB / 413.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003209/0.3481, allocations: 156 kB / 413.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.3483, allocations: 231.1 kB / 413.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005387/0.3488, allocations: 0.5443 MB / 414.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0017/0.3505, allocations: 1.436 MB / 415.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3505, allocations: 4 kB / 415.9 MB, free: 9.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3506, allocations: 0 / 415.9 MB, free: 9.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.3506, allocations: 0 / 415.9 MB, free: 9.039 MB / 334.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.002161/0.3527, allocations: 1.281 MB / 417.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.3528, allocations: 12.02 kB / 417.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001458/0.353, allocations: 127.1 kB / 417.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000504/0.3535, allocations: 148.2 kB / 417.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.3546, allocations: 0.6538 MB / 418.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.766e-05/0.3546, allocations: 58.38 kB / 418.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.3547, allocations: 88.08 kB / 418.3 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.3561, allocations: 0.7754 MB / 419.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.3561, allocations: 4 kB / 419.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.62e-05/0.3562, allocations: 36 kB / 419.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.3562, allocations: 20 kB / 419.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.3573, allocations: 0.5114 MB / 419.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004444/0.3618, allocations: 3.385 MB / 423 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.3623, allocations: 226.5 kB / 423.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002478/0.3626, allocations: 112.8 kB / 423.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.3626, allocations: 11.98 kB / 423.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.3627, allocations: 34.56 kB / 423.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.824e-06/0.3627, allocations: 0 / 423.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002197/0.3649, allocations: 1.073 MB / 424.5 MB, free: 68 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.213e-05/0.365, allocations: 81.34 kB / 424.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.3661, allocations: 0.7349 MB / 425.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.3662, allocations: 29.7 kB / 425.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005095/0.3667, allocations: 0.5034 MB / 425.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.3668, allocations: 111.1 kB / 425.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.367, allocations: 118.2 kB / 426 MB, free: 14.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002423/0.3672, allocations: 374.8 kB / 426.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003047/0.3676, allocations: 125.2 kB / 426.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/0.3681, allocations: 418.2 kB / 426.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009321/0.3691, allocations: 0.5792 MB / 427.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3691, allocations: 0 / 427.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001147/0.3703, allocations: 0.6192 MB / 428.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.3703, allocations: 14.66 kB / 428.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3703, allocations: 8 kB / 428.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/0.3705, allocations: 32.84 kB / 428.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00045/0.371, allocations: 148.1 kB / 428.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.3722, allocations: 1.386 MB / 429.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004722/0.3727, allocations: 31.98 kB / 429.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.336e-05/0.3728, allocations: 31.98 kB / 429.8 MB, free: 10.28 MB / 350.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.0003775/0.3732, allocations: 241.5 kB / 430 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.3733, allocations: 79.55 kB / 430.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006826/0.374, allocations: 321.4 kB / 430.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.374, allocations: 4 kB / 430.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.374, allocations: 3.938 kB / 430.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.374, allocations: 0 / 430.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.3758, allocations: 1.1 MB / 431.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3758, allocations: 0 / 431.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002614/0.3761, allocations: 60.12 kB / 431.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.621e-05/0.3762, allocations: 24.84 kB / 431.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.3762, allocations: 11.94 kB / 431.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001123/0.3773, allocations: 1.375 MB / 433 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3774, allocations: 0 / 433 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009216/0.3783, allocations: 0.5614 MB / 433.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.3785, allocations: 172.6 kB / 433.7 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.569e-05/0.3786, allocations: 8 kB / 433.7 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000306/0.3789, allocations: 15.98 kB / 433.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.47e-05/0.379, allocations: 31.84 kB / 433.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.379, allocations: 12 kB / 433.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007477/0.3798, allocations: 0.5069 MB / 434.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3798, allocations: 0 / 434.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000676/0.3805, allocations: 159.9 kB / 434.4 MB, free: 5.309 MB / 350.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.001384/0.3819, allocations: 1.128 MB / 435.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.3829, allocations: 463 kB / 436 MB, free: 3.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3829, allocations: 1.875 kB / 436 MB, free: 3.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004124/0.3833, allocations: 242.9 kB / 436.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009563/0.3843, allocations: 182.9 kB / 436.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/0.3944, allocations: 6.27 MB / 442.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006881/0.3951, allocations: 0.9449 MB / 443.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003815/0.3955, allocations: 86.03 kB / 443.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004094/0.3959, allocations: 303.3 kB / 444 MB, free: 11.19 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3959, allocations: 0 / 444 MB, free: 11.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05028/0.4462, allocations: 15.43 MB / 459.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.03, allocations: 6.344 kB / 459.5 MB, free: 12.01 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches