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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001209/0.001209, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 208.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.372/1.372, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 60.94 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.08549, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009094/0.09462, allocations: 8.171 MB / 365.8 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004251/0.0989, allocations: 2.727 MB / 368.5 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008463/0.09977, allocations: 31.88 kB / 368.5 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.1013, allocations: 0.5317 MB / 369.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001197/0.1025, allocations: 428.5 kB / 369.5 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007661/0.1033, allocations: 363.5 kB / 369.8 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001552/0.1049, allocations: 1.487 MB / 371.3 MB, free: 224 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1467/0.2515, allocations: 0.6146 MB / 371.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009059/0.2525, allocations: 0.5536 MB / 372.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005944/0.2531, allocations: 0.6029 MB / 373.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001926/0.2533, allocations: 139.2 kB / 373.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003544/0.2537, allocations: 177.3 kB / 373.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002013/0.2539, allocations: 287 kB / 373.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005402/0.2544, allocations: 0.6674 MB / 374.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001743/0.2562, allocations: 1.688 MB / 376 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2562, allocations: 0.6562 kB / 376 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2562, allocations: 1.375 kB / 376 MB, free: 9.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.994e-05/0.2562, allocations: 0 / 376 MB, free: 9.93 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.002284/0.2585, allocations: 1.516 MB / 377.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2586, allocations: 10.38 kB / 377.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001528/0.2587, allocations: 148.9 kB / 377.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006046/0.2593, allocations: 187.2 kB / 377.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.2604, allocations: 0.7739 MB / 378.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.957e-05/0.2605, allocations: 72.62 kB / 378.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.2606, allocations: 108.9 kB / 378.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.262, allocations: 0.9622 MB / 379.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.318e-05/0.2621, allocations: 6.234 kB / 379.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.802e-05/0.2622, allocations: 38.55 kB / 379.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.2622, allocations: 25.53 kB / 379.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.2634, allocations: 0.6357 MB / 380.5 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004559/0.2679, allocations: 4.114 MB / 384.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009578/0.2689, allocations: 432.8 kB / 385 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.2692, allocations: 163.3 kB / 385.2 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.2692, allocations: 8.203 kB / 385.2 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.2693, allocations: 41.47 kB / 385.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.265e-06/0.2693, allocations: 0 / 385.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002219/0.2715, allocations: 1.32 MB / 386.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.2716, allocations: 133.2 kB / 386.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.2726, allocations: 0.8933 MB / 387.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.2726, allocations: 32.17 kB / 387.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002888/0.2729, allocations: 0.5904 MB / 388.2 MB, free: 3.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.695e-05/0.273, allocations: 154.5 kB / 388.4 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.2732, allocations: 137.3 kB / 388.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.043e-05/0.2733, allocations: 335.8 kB / 388.8 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003051/0.2736, allocations: 177.2 kB / 389 MB, free: 2.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/0.274, allocations: 0.4919 MB / 389.5 MB, free: 2.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007246/0.2747, allocations: 0.6863 MB / 390.2 MB, free: 1.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.2747, allocations: 2.688 kB / 390.2 MB, free: 1.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001133/0.2759, allocations: 0.7438 MB / 390.9 MB, free: 1.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.2759, allocations: 15.97 kB / 390.9 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.2759, allocations: 10.78 kB / 390.9 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001493/0.2761, allocations: 34.42 kB / 391 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.2767, allocations: 168.9 kB / 391.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006821/0.2774, allocations: 1.386 MB / 392.5 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006096/0.278, allocations: 45.89 kB / 392.6 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.547e-05/0.278, allocations: 36.81 kB / 392.6 MB, free: 48 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000571/0.2786, allocations: 355 kB / 393 MB, free: 15.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004555/0.2791, allocations: 485.6 kB / 393.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007525/0.2798, allocations: 0.6644 MB / 394.1 MB, free: 14.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.891e-06/0.2799, allocations: 3.219 kB / 394.1 MB, free: 14.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001093/0.281, allocations: 0.7219 MB / 394.8 MB, free: 14.53 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.281, allocations: 11.94 kB / 394.8 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.281, allocations: 15.25 kB / 394.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.131e-05/0.2811, allocations: 39.22 kB / 394.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005062/0.2816, allocations: 159.5 kB / 395 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008653/0.2825, allocations: 1.391 MB / 396.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005823/0.2831, allocations: 32.64 kB / 396.5 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.47e-05/0.2831, allocations: 41.53 kB / 396.5 MB, free: 13.09 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.0001879/0.2833, allocations: 237.4 kB / 396.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.2835, allocations: 91.41 kB / 396.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008293/0.2843, allocations: 435.2 kB / 397.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.2843, allocations: 12.33 kB / 397.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2843, allocations: 0.75 kB / 397.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.2844, allocations: 3.047 kB / 397.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.2864, allocations: 1.381 MB / 398.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.2864, allocations: 1.531 kB / 398.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.2868, allocations: 79.58 kB / 398.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.469e-05/0.2869, allocations: 20.98 kB / 398.8 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.2869, allocations: 16.05 kB / 398.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008433/0.2877, allocations: 1.372 MB / 400.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.2878, allocations: 6.25 kB / 400.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.2889, allocations: 0.7047 MB / 400.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003216/0.2892, allocations: 203.9 kB / 401 MB, free: 9.738 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.2894, allocations: 24.2 kB / 401.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.2898, allocations: 19.86 kB / 401.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/0.2899, allocations: 25.25 kB / 401.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.178e-05/0.29, allocations: 13.62 kB / 401.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009535/0.2909, allocations: 0.6082 MB / 401.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2909, allocations: 0 / 401.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00131/0.2923, allocations: 351.2 kB / 402.1 MB, free: 9.309 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.001371/0.2936, allocations: 1.289 MB / 403.4 MB, free: 8.293 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.2954, allocations: 0.9875 MB / 404.4 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2954, allocations: 0 / 404.4 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003874/0.2958, allocations: 281.4 kB / 404.6 MB, free: 7.613 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.297, allocations: 240.7 kB / 404.9 MB, free: 7.488 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.3089, allocations: 8.202 MB / 413.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000596/0.3095, allocations: 1.025 MB / 414.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006174/0.3101, allocations: 123.3 kB / 414.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004739/0.3106, allocations: 391.3 kB / 414.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3106, allocations: 0 / 414.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09662/0.4072, allocations: 19.41 MB / 434 MB, free: 11.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.81, allocations: 11.11 kB / 434 MB, free: 11.12 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/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