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.001305/0.001305, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 199.9 kB / 18.73 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.446/1.446, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 67.88 kB / 358.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.289, allocations: 50.56 MB / 408.8 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01496/0.304, allocations: 12.17 MB / 421 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007269/0.3113, allocations: 3.304 MB / 424.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001887/0.3133, allocations: 35.94 kB / 424.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.3155, allocations: 0.6595 MB / 425 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002922/0.3184, allocations: 0.7286 MB / 425.7 MB, free: 464 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.3194, allocations: 399.5 kB / 426.1 MB, free: 64 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00355/0.323, allocations: 2.417 MB / 428.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00148/0.3245, allocations: 1.001 MB / 429.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001585/0.3261, allocations: 0.895 MB / 430.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001431/0.3275, allocations: 0.9878 MB / 431.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000343/0.3279, allocations: 231.9 kB / 431.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005745/0.3285, allocations: 264 kB / 431.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004086/0.3289, allocations: 466.3 kB / 432.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001207/0.3301, allocations: 1.073 MB / 433.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003648/0.3338, allocations: 2.837 MB / 436.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3338, allocations: 0 / 436.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3338, allocations: 0 / 436.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.365e-05/0.3339, allocations: 0 / 436.3 MB, free: 5.824 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004882/0.3388, allocations: 2.224 MB / 438.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.3388, allocations: 8.031 kB / 438.5 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002728/0.3391, allocations: 220.1 kB / 438.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009522/0.3401, allocations: 295.5 kB / 439 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00227/0.3424, allocations: 1.131 MB / 440.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.3425, allocations: 119.2 kB / 440.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002427/0.3427, allocations: 163.8 kB / 440.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00281/0.3456, allocations: 1.504 MB / 441.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.672e-05/0.3456, allocations: 7.938 kB / 441.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.3458, allocations: 68 kB / 442 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.564e-05/0.3458, allocations: 40 kB / 442 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002235/0.3481, allocations: 1.045 MB / 443.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009499/0.3576, allocations: 6.247 MB / 449.3 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.3592, allocations: 0.6114 MB / 449.9 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.3603, allocations: 469.6 kB / 450.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.442e-05/0.3603, allocations: 12.55 kB / 450.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.3604, allocations: 43.06 kB / 450.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.805e-06/0.3604, allocations: 0 / 450.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005676/0.3661, allocations: 2.395 MB / 452.9 MB, free: 4.652 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.911e-05/0.3662, allocations: 115.4 kB / 453 MB, free: 4.516 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002073/0.3683, allocations: 1.31 MB / 454.3 MB, free: 3.191 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.511e-05/0.3684, allocations: 37.7 kB / 454.3 MB, free: 3.148 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007391/0.3691, allocations: 0.871 MB / 455.2 MB, free: 2.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.3694, allocations: 265.8 kB / 455.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.3697, allocations: 206.8 kB / 455.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3699, allocations: 353.9 kB / 456 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006285/0.3705, allocations: 278.5 kB / 456.3 MB, free: 1.176 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.3716, allocations: 0.7342 MB / 457 MB, free: 232 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/0.3734, allocations: 1.1 MB / 458.1 MB, free: 14.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3734, allocations: 4 kB / 458.1 MB, free: 14.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002756/0.3761, allocations: 1.264 MB / 459.4 MB, free: 13.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.3762, allocations: 16.44 kB / 459.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.3762, allocations: 20 kB / 459.4 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005456/0.3768, allocations: 126.5 kB / 459.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008766/0.3777, allocations: 267.5 kB / 459.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004694/0.3824, allocations: 4.627 MB / 464.4 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.3836, allocations: 67.92 kB / 464.5 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.3837, allocations: 52 kB / 464.5 MB, free: 8.035 MB / 382.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.0006984/0.3844, allocations: 357.4 kB / 464.9 MB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002558/0.3846, allocations: 139.1 kB / 465 MB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/0.3866, allocations: 0.8411 MB / 465.9 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.3867, allocations: 11.94 kB / 465.9 MB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.3867, allocations: 4 kB / 465.9 MB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.3867, allocations: 3.984 kB / 465.9 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00444/0.3911, allocations: 2.323 MB / 468.2 MB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.3912, allocations: 8.094 kB / 468.2 MB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006053/0.3918, allocations: 131.8 kB / 468.3 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004941/0.3923, allocations: 138.4 kB / 468.5 MB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.699e-05/0.3924, allocations: 23.98 kB / 468.5 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005116/0.3975, allocations: 4.796 MB / 473.3 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.3975, allocations: 4 kB / 473.3 MB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/0.4002, allocations: 1.297 MB / 474.6 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006245/0.4009, allocations: 292 kB / 474.9 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000173/0.401, allocations: 20 kB / 474.9 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006124/0.4017, allocations: 47.89 kB / 474.9 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.4018, allocations: 56.44 kB / 475 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.545e-05/0.4019, allocations: 23.98 kB / 475 MB, free: 12.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001447/0.4033, allocations: 0.8819 MB / 475.9 MB, free: 11.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4033, allocations: 0 / 475.9 MB, free: 11.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00132/0.4047, allocations: 324 kB / 476.2 MB, free: 11.68 MB / 398.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.003085/0.4077, allocations: 1.885 MB / 478.1 MB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.41, allocations: 1.124 MB / 479.2 MB, free: 8.539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.41, allocations: 4 kB / 479.2 MB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.4111, allocations: 0.7149 MB / 479.9 MB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001816/0.413, allocations: 367.5 kB / 480.3 MB, free: 7.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02053/0.4335, allocations: 11.74 MB / 492 MB, free: 11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009983/0.4345, allocations: 1.214 MB / 493.3 MB, free: 9.754 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007402/0.4353, allocations: 171.6 kB / 493.4 MB, free: 9.582 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008229/0.4361, allocations: 0.6125 MB / 494 MB, free: 8.969 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4361, allocations: 0 / 494 MB, free: 8.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1071/0.5433, allocations: 31.19 MB / 0.5129 GB, free: 10.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.18/15.73, allocations: 3.984 kB / 0.5129 GB, free: 10.14 MB / 446.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.1.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