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.001117/0.001117, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001224, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2637, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01357/0.2773, allocations: 12.15 MB / 420.9 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006428/0.2838, allocations: 3.311 MB / 424.2 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001715/0.2856, allocations: 39.88 kB / 424.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002106/0.2877, allocations: 0.6595 MB / 424.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002765/0.2905, allocations: 0.7286 MB / 425.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.2917, allocations: 407.5 kB / 426.1 MB, free: 160 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00328/0.295, allocations: 2.416 MB / 428.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001704/0.2967, allocations: 0.9969 MB / 429.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.2987, allocations: 0.9106 MB / 430.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001991/0.3007, allocations: 0.9839 MB / 431.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007826/0.3015, allocations: 236 kB / 431.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001198/0.3027, allocations: 275.9 kB / 431.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006847/0.3034, allocations: 454.4 kB / 432.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001794/0.3052, allocations: 1.077 MB / 433.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00349/0.3087, allocations: 2.826 MB / 436.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3088, allocations: 0 / 436.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3088, allocations: 0 / 436.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.522e-05/0.3088, allocations: 0 / 436.2 MB, free: 5.922 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.004687/0.3135, allocations: 2.164 MB / 438.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.3136, allocations: 8.031 kB / 438.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002658/0.3139, allocations: 224.1 kB / 438.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009408/0.3148, allocations: 282.4 kB / 438.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.317, allocations: 1.13 MB / 440 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.557e-05/0.3171, allocations: 115.2 kB / 440.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.3173, allocations: 159.9 kB / 440.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002579/0.3199, allocations: 1.504 MB / 441.8 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.577e-05/0.32, allocations: 15.89 kB / 441.8 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.3201, allocations: 64 kB / 441.9 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.754e-05/0.3202, allocations: 39.94 kB / 441.9 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002104/0.3223, allocations: 1.041 MB / 442.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008435/0.3307, allocations: 6.226 MB / 449.2 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.3324, allocations: 0.6153 MB / 449.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009841/0.3334, allocations: 463.3 kB / 450.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.281e-05/0.3335, allocations: 8.562 kB / 450.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.3335, allocations: 43.11 kB / 450.3 MB, free: 7.332 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.777e-06/0.3336, allocations: 3.938 kB / 450.3 MB, free: 7.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005517/0.3391, allocations: 2.364 MB / 452.7 MB, free: 4.875 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/0.3392, allocations: 111.5 kB / 452.8 MB, free: 4.742 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00206/0.3413, allocations: 1.31 MB / 454.1 MB, free: 3.418 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.378e-05/0.3413, allocations: 41.69 kB / 454.1 MB, free: 3.371 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006073/0.342, allocations: 0.8453 MB / 455 MB, free: 2.516 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.3422, allocations: 264.2 kB / 455.2 MB, free: 2.254 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/0.3424, allocations: 206.7 kB / 455.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.3426, allocations: 345.9 kB / 455.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005876/0.3432, allocations: 286.5 kB / 456 MB, free: 1.422 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008741/0.3441, allocations: 0.7304 MB / 456.8 MB, free: 488 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/0.3457, allocations: 1.096 MB / 457.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.3457, allocations: 4 kB / 457.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002664/0.3484, allocations: 1.26 MB / 459.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.3484, allocations: 16.09 kB / 459.1 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.3485, allocations: 16 kB / 459.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005614/0.349, allocations: 130.5 kB / 459.3 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008738/0.3499, allocations: 263.5 kB / 459.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004171/0.3541, allocations: 4.63 MB / 464.2 MB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.3554, allocations: 67.94 kB / 464.2 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.3555, allocations: 56 kB / 464.3 MB, free: 8.289 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.0006427/0.3561, allocations: 361.3 kB / 464.6 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.3564, allocations: 138.3 kB / 464.8 MB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.3582, allocations: 0.8334 MB / 465.6 MB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.3583, allocations: 11.94 kB / 465.6 MB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.3583, allocations: 0 / 465.6 MB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.3583, allocations: 3.984 kB / 465.6 MB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004223/0.3625, allocations: 2.327 MB / 468 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.178e-06/0.3626, allocations: 4 kB / 468 MB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005855/0.3631, allocations: 127.8 kB / 468.1 MB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004974/0.3637, allocations: 138.5 kB / 468.2 MB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.138e-05/0.3637, allocations: 23.92 kB / 468.2 MB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004378/0.3681, allocations: 4.78 MB / 473 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.3682, allocations: 7.938 kB / 473 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002734/0.3709, allocations: 1.292 MB / 474.3 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006841/0.3716, allocations: 287.3 kB / 474.6 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.3718, allocations: 16 kB / 474.6 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006126/0.3724, allocations: 43.97 kB / 474.7 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.3726, allocations: 60.36 kB / 474.7 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.606e-05/0.3726, allocations: 28.12 kB / 474.7 MB, free: 13.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00132/0.374, allocations: 0.8742 MB / 475.6 MB, free: 12.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.374, allocations: 0 / 475.6 MB, free: 12.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001319/0.3753, allocations: 340 kB / 476 MB, free: 11.95 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.002789/0.3781, allocations: 1.884 MB / 477.8 MB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.3802, allocations: 1.129 MB / 479 MB, free: 8.812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.3802, allocations: 0 / 479 MB, free: 8.812 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3812, allocations: 0.7023 MB / 479.7 MB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/0.3831, allocations: 372.4 kB / 480 MB, free: 7.723 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01896/0.402, allocations: 11.66 MB / 491.7 MB, free: 11.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008495/0.4029, allocations: 1.21 MB / 492.9 MB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007338/0.4037, allocations: 175.6 kB / 493.1 MB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007861/0.4045, allocations: 0.6164 MB / 493.7 MB, free: 9.316 MB / 414.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4045, allocations: 0 / 493.7 MB, free: 9.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07076/0.4753, allocations: 31.66 MB / 0.513 GB, free: 10.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.51, allocations: 7.969 kB / 0.5131 GB, free: 10.01 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.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