Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.001049, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.7 kB / 306.4 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09231, allocations: 50.54 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01265/0.105, allocations: 12.08 MB / 369 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1563/0.2613, allocations: 3.265 MB / 372.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.263, allocations: 38.3 kB / 372.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002066/0.2651, allocations: 0.5691 MB / 372.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002172/0.2673, allocations: 0.6292 MB / 373.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009475/0.2682, allocations: 357.6 kB / 373.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00277/0.271, allocations: 2.279 MB / 376.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.2721, allocations: 0.8602 MB / 377 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.2732, allocations: 0.8168 MB / 377.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007754/0.274, allocations: 0.9228 MB / 378.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002157/0.2742, allocations: 139.8 kB / 378.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004438/0.2746, allocations: 180.6 kB / 379 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002504/0.2749, allocations: 368.2 kB / 379.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007972/0.2757, allocations: 0.9958 MB / 380.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002322/0.278, allocations: 2.727 MB / 383.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2781, allocations: 0 / 383.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2781, allocations: 0.6562 kB / 383.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.185e-05/0.2781, allocations: 1.125 kB / 383.1 MB, free: 7.652 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003601/0.2817, allocations: 2.15 MB / 385.2 MB, free: 6.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.2818, allocations: 9.969 kB / 385.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002259/0.282, allocations: 223.4 kB / 385.5 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009464/0.283, allocations: 283.6 kB / 385.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/0.2845, allocations: 1.107 MB / 386.9 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-05/0.2846, allocations: 118.1 kB / 387 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.2848, allocations: 160.8 kB / 387.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/0.2872, allocations: 1.505 MB / 388.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.122e-05/0.2873, allocations: 14.16 kB / 388.7 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.2874, allocations: 62.19 kB / 388.7 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.919e-05/0.2874, allocations: 38.97 kB / 388.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001942/0.2894, allocations: 1.051 MB / 389.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007203/0.2966, allocations: 6.285 MB / 396.1 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.2982, allocations: 0.6123 MB / 396.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009566/0.2992, allocations: 464.8 kB / 397.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.947e-05/0.2993, allocations: 14.12 kB / 397.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.2993, allocations: 38.38 kB / 397.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.345e-06/0.2993, allocations: 4 kB / 397.2 MB, free: 14.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.006383/0.3057, allocations: 2.371 MB / 399.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.3058, allocations: 110.9 kB / 399.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/0.3076, allocations: 1.297 MB / 401 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.3077, allocations: 36.23 kB / 401 MB, free: 11.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005362/0.3082, allocations: 0.8521 MB / 401.9 MB, free: 11.01 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.3084, allocations: 261.2 kB / 402.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002661/0.3087, allocations: 207.1 kB / 402.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3088, allocations: 353.2 kB / 402.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005831/0.3094, allocations: 287.8 kB / 403 MB, free: 10.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008116/0.3102, allocations: 0.7335 MB / 403.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002071/0.3123, allocations: 1.082 MB / 404.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.3123, allocations: 4.906 kB / 404.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002914/0.3152, allocations: 1.272 MB / 406 MB, free: 7.488 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.3153, allocations: 12 kB / 406.1 MB, free: 7.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.3153, allocations: 16 kB / 406.1 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005134/0.3158, allocations: 134.9 kB / 406.2 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008716/0.3167, allocations: 255.6 kB / 406.5 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00358/0.3203, allocations: 4.273 MB / 410.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.3218, allocations: 60 kB / 410.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.3219, allocations: 56 kB / 410.8 MB, free: 2.289 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008496/0.3228, allocations: 361.3 kB / 411.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003073/0.3231, allocations: 134.3 kB / 411.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/0.3251, allocations: 0.8334 MB / 412.2 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3251, allocations: 12.14 kB / 412.2 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.3251, allocations: 8.125 kB / 412.2 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.3251, allocations: 11.91 kB / 412.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003866/0.329, allocations: 2.33 MB / 414.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.329, allocations: 4 kB / 414.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006164/0.3296, allocations: 127.8 kB / 414.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004633/0.3301, allocations: 138.6 kB / 414.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.3302, allocations: 19.98 kB / 414.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004596/0.3348, allocations: 4.389 MB / 419.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.3348, allocations: 4 kB / 419.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.3372, allocations: 1.307 MB / 420.5 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.3376, allocations: 275.4 kB / 420.8 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.3378, allocations: 23.98 kB / 420.8 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006804/0.3385, allocations: 35.97 kB / 420.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.3386, allocations: 64.36 kB / 420.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.36e-05/0.3387, allocations: 20 kB / 420.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001202/0.3399, allocations: 0.882 MB / 421.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.383e-06/0.3399, allocations: 0 / 421.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001753/0.3417, allocations: 327.9 kB / 422.1 MB, free: 6.375 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003096/0.3448, allocations: 1.887 MB / 424 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001833/0.3466, allocations: 1.105 MB / 425.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.3466, allocations: 4 kB / 425.1 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.3477, allocations: 0.7078 MB / 425.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.3493, allocations: 346 kB / 426.2 MB, free: 2.184 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/0.371, allocations: 13.67 MB / 439.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007416/0.3717, allocations: 1.214 MB / 441 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007194/0.3725, allocations: 175.6 kB / 441.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006945/0.3732, allocations: 0.6125 MB / 441.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3732, allocations: 0 / 441.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06734/0.4405, allocations: 29.51 MB / 471.3 MB, free: 4.215 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/0.4408, allocations: 263.1 kB / 471.6 MB, free: 3.953 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.913/3.353, allocations: 2.5 kB / 471.6 MB, free: 3.953 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches