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.0008459/0.0008459, allocations: 93.78 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009624/0.0009624, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 227.7 MB / 246.8 MB, free: 9.543 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001954/0.0001955, allocations: 7.984 kB / 307.8 MB, free: 472 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08384/0.08405, allocations: 51.52 MB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007141/0.09122, allocations: 7.642 MB / 367 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003537/0.09478, allocations: 2.673 MB / 369.7 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003763/0.09517, allocations: 27.88 kB / 369.7 MB, free: 2.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009881/0.09617, allocations: 485.3 kB / 370.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006471/0.09682, allocations: 369.4 kB / 370.5 MB, free: 1.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005458/0.09738, allocations: 311.7 kB / 370.8 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1468/0.2442, allocations: 1.419 MB / 372.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001023/0.2453, allocations: 0.5355 MB / 372.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008139/0.2461, allocations: 465.4 kB / 373.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004925/0.2466, allocations: 0.5074 MB / 373.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.2467, allocations: 64.5 kB / 373.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.247, allocations: 101.9 kB / 373.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.2471, allocations: 200.7 kB / 374.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004569/0.2476, allocations: 0.5939 MB / 374.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.2491, allocations: 1.596 MB / 376.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2491, allocations: 0.5 kB / 376.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2491, allocations: 1.406 kB / 376.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.2492, allocations: 0 / 376.3 MB, free: 9.012 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.002088/0.2512, allocations: 1.301 MB / 377.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.2513, allocations: 10.06 kB / 377.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001893/0.2515, allocations: 152.5 kB / 377.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005582/0.2521, allocations: 189.4 kB / 378 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.2531, allocations: 0.7764 MB / 378.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.433e-05/0.2532, allocations: 72.88 kB / 378.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.2533, allocations: 106.3 kB / 378.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.2548, allocations: 0.9694 MB / 379.9 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.256e-05/0.2549, allocations: 7.453 kB / 379.9 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.95e-05/0.255, allocations: 42.28 kB / 379.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.209e-05/0.255, allocations: 23.81 kB / 379.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.2561, allocations: 0.6459 MB / 380.6 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004801/0.261, allocations: 4.125 MB / 384.7 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.262, allocations: 475.6 kB / 385.2 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.2623, allocations: 167 kB / 385.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.269e-05/0.2623, allocations: 3.438 kB / 385.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.2623, allocations: 41.06 kB / 385.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.254e-06/0.2623, allocations: 0 / 385.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002353/0.2647, allocations: 1.36 MB / 386.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.2648, allocations: 142 kB / 386.9 MB, free: 4.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.2659, allocations: 0.891 MB / 387.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.392e-05/0.2659, allocations: 31.86 kB / 387.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.2662, allocations: 0.5874 MB / 388.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.891e-05/0.2663, allocations: 152.8 kB / 388.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.686e-05/0.2664, allocations: 64.78 kB / 388.6 MB, free: 3.418 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.337e-05/0.2664, allocations: 333.5 kB / 388.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002985/0.2667, allocations: 176.2 kB / 389.1 MB, free: 3.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/0.2671, allocations: 0.4977 MB / 389.6 MB, free: 2.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007314/0.2679, allocations: 0.6965 MB / 390.3 MB, free: 1.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.2679, allocations: 2.656 kB / 390.3 MB, free: 1.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001144/0.2691, allocations: 0.7551 MB / 391.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.2692, allocations: 401.7 kB / 391.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.2692, allocations: 9.625 kB / 391.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001387/0.2694, allocations: 36.47 kB / 391.5 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005265/0.2699, allocations: 172.8 kB / 391.7 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000707/0.2706, allocations: 1.288 MB / 393 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/0.2712, allocations: 43.11 kB / 393 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.2713, allocations: 45.48 kB / 393 MB, free: 15.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.5e-06/0.2713, allocations: 3.688 kB / 393 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009006/0.2722, allocations: 0.6176 MB / 393.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.2722, allocations: 14.09 kB / 393.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.242e-05/0.2723, allocations: 35.61 kB / 393.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.2728, allocations: 167.3 kB / 393.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008181/0.2737, allocations: 1.293 MB / 395.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005421/0.2742, allocations: 34.2 kB / 395.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.732e-05/0.2743, allocations: 40.31 kB / 395.2 MB, free: 14.31 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.0005059/0.2748, allocations: 336.2 kB / 395.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.2749, allocations: 90.62 kB / 395.7 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007955/0.2757, allocations: 448.1 kB / 396.1 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.2757, allocations: 8.156 kB / 396.1 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2758, allocations: 1 kB / 396.1 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2758, allocations: 5.953 kB / 396.1 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002016/0.2778, allocations: 1.394 MB / 397.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.2778, allocations: 1.531 kB / 397.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003405/0.2781, allocations: 81.67 kB / 397.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.334e-05/0.2782, allocations: 32.44 kB / 397.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.2783, allocations: 7.969 kB / 397.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008208/0.2791, allocations: 1.278 MB / 398.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2791, allocations: 6.906 kB / 398.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.2802, allocations: 0.7222 MB / 399.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003078/0.2805, allocations: 210.6 kB / 399.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.565e-05/0.2806, allocations: 8.969 kB / 399.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004021/0.281, allocations: 27.38 kB / 399.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.2811, allocations: 32.98 kB / 399.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.2811, allocations: 12.62 kB / 399.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008156/0.2819, allocations: 0.609 MB / 400.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2819, allocations: 0 / 400.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001247/0.2832, allocations: 346.9 kB / 400.9 MB, free: 10.43 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.001326/0.2845, allocations: 1.308 MB / 402.2 MB, free: 9.414 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.286, allocations: 0.9844 MB / 403.2 MB, free: 8.918 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.286, allocations: 0 / 403.2 MB, free: 8.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003655/0.2864, allocations: 290.7 kB / 403.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.2877, allocations: 220.5 kB / 403.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.2993, allocations: 8.727 MB / 412.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005879/0.3, allocations: 1.021 MB / 413.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005447/0.3005, allocations: 123.3 kB / 413.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004557/0.301, allocations: 395.2 kB / 413.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.301, allocations: 0 / 413.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0364/0.3374, allocations: 18.58 MB / 432.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002429/0.3377, allocations: 259.1 kB / 432.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.012/2.35, allocations: 3.5 kB / 432.8 MB, free: 12.86 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