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.001425/0.001425, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001535/0.001535, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002978/0.002978, allocations: 59.91 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3414, allocations: 50.55 MB / 408.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01021/0.3516, allocations: 8.185 MB / 417 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005316/0.357, allocations: 2.729 MB / 419.7 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008069/0.3578, allocations: 31.94 kB / 419.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001532/0.3594, allocations: 0.5317 MB / 420.3 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00128/0.3607, allocations: 436.5 kB / 420.7 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008213/0.3615, allocations: 363.1 kB / 421.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001689/0.3632, allocations: 1.495 MB / 422.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008291/0.3641, allocations: 0.6165 MB / 423.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007004/0.3648, allocations: 0.5524 MB / 423.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006587/0.3654, allocations: 0.5988 MB / 424.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.3656, allocations: 140 kB / 424.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003486/0.366, allocations: 179.9 kB / 424.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002405/0.3662, allocations: 290.9 kB / 425 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006084/0.3668, allocations: 0.6647 MB / 425.6 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001913/0.3688, allocations: 1.724 MB / 427.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3688, allocations: 0 / 427.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3688, allocations: 0 / 427.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.3688, allocations: 0 / 427.3 MB, free: 14.84 MB / 350.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.002474/0.3713, allocations: 1.545 MB / 428.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3713, allocations: 12.03 kB / 428.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001617/0.3715, allocations: 148.3 kB / 429 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005865/0.3721, allocations: 199.9 kB / 429.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.3734, allocations: 0.8061 MB / 430 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.074e-05/0.3735, allocations: 74 kB / 430.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.3736, allocations: 99.95 kB / 430.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.3752, allocations: 0.9584 MB / 431.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/0.3752, allocations: 0 / 431.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.069e-05/0.3753, allocations: 44 kB / 431.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.357e-05/0.3753, allocations: 31.94 kB / 431.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.3765, allocations: 0.6363 MB / 431.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00539/0.3819, allocations: 4.097 MB / 436 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.383, allocations: 437.4 kB / 436.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.3833, allocations: 160.8 kB / 436.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.3833, allocations: 4 kB / 436.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.3834, allocations: 38.56 kB / 436.6 MB, free: 5.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.744e-06/0.3834, allocations: 0 / 436.6 MB, free: 5.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002561/0.3859, allocations: 1.333 MB / 437.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.905e-05/0.3861, allocations: 140.4 kB / 438.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.3873, allocations: 0.8898 MB / 439 MB, free: 2.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.3873, allocations: 33.7 kB / 439 MB, free: 2.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000455/0.3878, allocations: 0.6047 MB / 439.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.3879, allocations: 154.7 kB / 439.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.3881, allocations: 138.6 kB / 439.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3883, allocations: 333.9 kB / 440.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/0.3886, allocations: 176.8 kB / 440.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005913/0.3892, allocations: 498.5 kB / 440.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.3902, allocations: 0.6868 MB / 441.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.3902, allocations: 0 / 441.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00131/0.3915, allocations: 0.7512 MB / 442.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.3916, allocations: 8 kB / 442.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.3916, allocations: 12 kB / 442.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.3918, allocations: 36.94 kB / 442.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005554/0.3923, allocations: 175.7 kB / 442.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.3935, allocations: 1.395 MB / 443.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005482/0.3941, allocations: 39.94 kB / 444 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.3942, allocations: 32 kB / 444 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005956/0.3948, allocations: 354.1 kB / 444.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005322/0.3953, allocations: 486.6 kB / 444.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008389/0.3962, allocations: 0.66 MB / 445.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.471e-06/0.3962, allocations: 4 kB / 445.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001133/0.3973, allocations: 0.7241 MB / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3973, allocations: 20 kB / 446.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.3973, allocations: 8 kB / 446.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001001/0.3975, allocations: 40.78 kB / 446.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005014/0.398, allocations: 163.7 kB / 446.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.399, allocations: 1.382 MB / 447.8 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/0.3996, allocations: 35.98 kB / 447.9 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.3996, allocations: 36.11 kB / 447.9 MB, free: 8.832 MB / 366.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.0002239/0.3998, allocations: 243.8 kB / 448.1 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.4, allocations: 95.39 kB / 448.2 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008608/0.4009, allocations: 431.4 kB / 448.6 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.4009, allocations: 4 kB / 448.7 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.4009, allocations: 4 kB / 448.7 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.4009, allocations: 11.92 kB / 448.7 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.403, allocations: 1.376 MB / 450 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.403, allocations: 8 kB / 450 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003451/0.4034, allocations: 79.89 kB / 450.1 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.128e-05/0.4035, allocations: 20.84 kB / 450.1 MB, free: 6.484 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.4035, allocations: 12 kB / 450.2 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009877/0.4045, allocations: 1.363 MB / 451.5 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.4045, allocations: 7.969 kB / 451.5 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.4056, allocations: 0.715 MB / 452.2 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/0.4059, allocations: 208.5 kB / 452.4 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.475e-05/0.406, allocations: 15.98 kB / 452.5 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003779/0.4064, allocations: 19.98 kB / 452.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.717e-05/0.4064, allocations: 27.97 kB / 452.5 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.35e-05/0.4065, allocations: 16 kB / 452.5 MB, free: 3.906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008053/0.4073, allocations: 0.6015 MB / 453.1 MB, free: 3.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4073, allocations: 0 / 453.1 MB, free: 3.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001081/0.4084, allocations: 355.9 kB / 453.5 MB, free: 2.945 MB / 366.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.001503/0.4099, allocations: 1.293 MB / 454.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.4115, allocations: 0.9775 MB / 455.7 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.4116, allocations: 4 kB / 455.8 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004163/0.412, allocations: 287.2 kB / 456 MB, free: 312 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.4131, allocations: 245.5 kB / 456.3 MB, free: 76 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.4238, allocations: 7.628 MB / 463.9 MB, free: 7.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.4245, allocations: 1.025 MB / 464.9 MB, free: 6.926 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005029/0.425, allocations: 123.3 kB / 465 MB, free: 6.801 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004891/0.4255, allocations: 391.3 kB / 465.4 MB, free: 6.418 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4255, allocations: 0 / 465.4 MB, free: 6.418 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.366/0.7916, allocations: 19.79 MB / 485.2 MB, free: 2.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.82, allocations: 11.31 kB / 485.2 MB, free: 2.887 MB / 398.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.1.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