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.001517/0.001517, allocations: 122.8 kB / 17.79 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.001274/0.001274, allocations: 206 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 63.89 kB / 358.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2816, allocations: 50.54 MB / 408.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007938/0.2896, allocations: 7.158 MB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003591/0.2932, allocations: 2.372 MB / 418.3 MB, free: 7.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005209/0.2938, allocations: 19.94 kB / 418.3 MB, free: 7.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.2949, allocations: 0.4931 MB / 418.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007388/0.2957, allocations: 373 kB / 419.2 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.296, allocations: 211.7 kB / 419.4 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.2971, allocations: 1.199 MB / 420.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006254/0.2977, allocations: 0.5076 MB / 421.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006156/0.2983, allocations: 474.1 kB / 421.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005183/0.2989, allocations: 497.8 kB / 422 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.299, allocations: 116 kB / 422.1 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00026/0.2993, allocations: 151.9 kB / 422.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.2994, allocations: 227.2 kB / 422.5 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004212/0.2999, allocations: 0.5404 MB / 423.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.3012, allocations: 1.44 MB / 424.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3012, allocations: 0 / 424.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3012, allocations: 3.938 kB / 424.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.3012, allocations: 0 / 424.5 MB, free: 1.645 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.00187/0.3031, allocations: 1.254 MB / 425.8 MB, free: 348 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.3032, allocations: 8.031 kB / 425.8 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001304/0.3033, allocations: 123.1 kB / 425.9 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004568/0.3038, allocations: 143.7 kB / 426 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.3048, allocations: 0.6455 MB / 426.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.3048, allocations: 62.38 kB / 426.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.305, allocations: 80.12 kB / 426.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.3062, allocations: 0.7793 MB / 427.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.786e-05/0.3063, allocations: 7.844 kB / 427.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.3063, allocations: 32 kB / 427.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.3064, allocations: 20 kB / 427.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009999/0.3074, allocations: 0.5231 MB / 428.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00412/0.3115, allocations: 3.356 MB / 431.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/0.312, allocations: 230.5 kB / 431.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.3123, allocations: 120.7 kB / 431.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.3123, allocations: 4 kB / 431.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.3124, allocations: 38.56 kB / 431.9 MB, free: 9.871 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.605e-06/0.3124, allocations: 0 / 431.9 MB, free: 9.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00216/0.3145, allocations: 1.049 MB / 433 MB, free: 8.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.3146, allocations: 81.34 kB / 433 MB, free: 8.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009359/0.3156, allocations: 0.7387 MB / 433.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.3156, allocations: 29.7 kB / 433.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/0.3159, allocations: 0.4904 MB / 434.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.378e-05/0.316, allocations: 102.5 kB / 434.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.3161, allocations: 118.2 kB / 434.5 MB, free: 7.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3163, allocations: 374.8 kB / 434.9 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002583/0.3166, allocations: 129.2 kB / 435 MB, free: 6.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004198/0.317, allocations: 418.2 kB / 435.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006965/0.3177, allocations: 0.5675 MB / 436 MB, free: 5.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.3177, allocations: 4 kB / 436 MB, free: 5.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009939/0.3187, allocations: 0.6147 MB / 436.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.3188, allocations: 8 kB / 436.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.3188, allocations: 12 kB / 436.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.3189, allocations: 37.41 kB / 436.7 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004237/0.3194, allocations: 139.8 kB / 436.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.3205, allocations: 1.394 MB / 438.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000461/0.321, allocations: 31.98 kB / 438.2 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.321, allocations: 35.94 kB / 438.3 MB, free: 2.977 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.0003034/0.3213, allocations: 249.5 kB / 438.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.729e-05/0.3214, allocations: 71.06 kB / 438.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006184/0.322, allocations: 317.4 kB / 438.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3221, allocations: 4 kB / 438.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3221, allocations: 0 / 438.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3221, allocations: 0 / 438.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.3236, allocations: 1.103 MB / 440 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.3236, allocations: 4.219 kB / 440 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.3239, allocations: 59.91 kB / 440 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.881e-05/0.324, allocations: 24.84 kB / 440.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.324, allocations: 8 kB / 440.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000886/0.3249, allocations: 1.367 MB / 441.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3249, allocations: 4.031 kB / 441.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008371/0.3257, allocations: 0.556 MB / 442 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.326, allocations: 168.2 kB / 442.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.01e-05/0.3261, allocations: 8.094 kB / 442.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/0.3264, allocations: 19.98 kB / 442.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.266e-05/0.3265, allocations: 35.83 kB / 442.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.3265, allocations: 12 kB / 442.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006664/0.3272, allocations: 0.499 MB / 442.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3272, allocations: 0 / 442.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007686/0.3279, allocations: 167.9 kB / 442.9 MB, free: 14.02 MB / 366.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.001311/0.3293, allocations: 1.121 MB / 444 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000857/0.3301, allocations: 456.6 kB / 444.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3301, allocations: 4 kB / 444.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.3305, allocations: 239.1 kB / 444.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009184/0.3314, allocations: 189.6 kB / 444.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007969/0.3394, allocations: 6.24 MB / 451.1 MB, free: 5.312 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000497/0.3399, allocations: 0.9449 MB / 452.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003223/0.3403, allocations: 86.02 kB / 452.2 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.3406, allocations: 311.3 kB / 452.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3406, allocations: 0 / 452.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04106/0.3817, allocations: 15.65 MB / 468.1 MB, free: 4.527 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.33, allocations: 7.984 kB / 468.1 MB, free: 4.52 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches