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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001498/0.001498, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001605/0.001605, allocations: 214.9 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 230.5 MB / 257.4 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 67.89 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2948, allocations: 53.4 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01541/0.3102, allocations: 12.24 MB / 443.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007025/0.3172, allocations: 3.334 MB / 446.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.3189, allocations: 43.81 kB / 446.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.3211, allocations: 0.6907 MB / 447.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.3235, allocations: 0.7872 MB / 448.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008976/0.3244, allocations: 399.5 kB / 448.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003373/0.3277, allocations: 2.428 MB / 451.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.3288, allocations: 0.65 MB / 451.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.3303, allocations: 0.9378 MB / 452.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.3316, allocations: 0.9801 MB / 453.7 MB, free: 88 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002968/0.3319, allocations: 228 kB / 453.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005131/0.3324, allocations: 267.9 kB / 454.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003715/0.3328, allocations: 466.3 kB / 454.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.3338, allocations: 1.077 MB / 455.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00317/0.337, allocations: 2.841 MB / 458.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.337, allocations: 0 / 458.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.337, allocations: 0 / 458.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.006e-05/0.337, allocations: 0 / 458.5 MB, free: 11.21 MB / 366.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.00394/0.341, allocations: 2.145 MB / 460.7 MB, free: 9.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.341, allocations: 8.031 kB / 460.7 MB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002682/0.3413, allocations: 224.1 kB / 460.9 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009183/0.3422, allocations: 295.5 kB / 461.2 MB, free: 8.496 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/0.3442, allocations: 1.044 MB / 462.2 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.3443, allocations: 123.2 kB / 462.4 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000231/0.3445, allocations: 160 kB / 462.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002585/0.3471, allocations: 1.504 MB / 464 MB, free: 5.566 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/0.3471, allocations: 15.94 kB / 464 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.3472, allocations: 63.94 kB / 464.1 MB, free: 5.488 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.745e-05/0.3473, allocations: 40 kB / 464.1 MB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/0.3494, allocations: 1.045 MB / 465.2 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008683/0.358, allocations: 6.105 MB / 471.3 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.3596, allocations: 0.5734 MB / 471.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008988/0.3605, allocations: 426.1 kB / 472.3 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.758e-05/0.3605, allocations: 8.656 kB / 472.3 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.3606, allocations: 47.16 kB / 472.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.386e-06/0.3606, allocations: 0 / 472.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005012/0.3656, allocations: 2.166 MB / 474.5 MB, free: 10.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/0.3657, allocations: 111.5 kB / 474.6 MB, free: 10.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.3675, allocations: 1.317 MB / 475.9 MB, free: 9.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.3677, allocations: 33.7 kB / 476 MB, free: 9.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007412/0.3684, allocations: 0.871 MB / 476.8 MB, free: 8.352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002374/0.3686, allocations: 269.8 kB / 477.1 MB, free: 8.086 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002955/0.3689, allocations: 206.8 kB / 477.3 MB, free: 7.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.3691, allocations: 353.9 kB / 477.6 MB, free: 7.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.3697, allocations: 282.5 kB / 477.9 MB, free: 7.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009641/0.3707, allocations: 0.7385 MB / 478.6 MB, free: 6.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.3723, allocations: 1.096 MB / 479.7 MB, free: 4.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.3723, allocations: 4 kB / 479.7 MB, free: 4.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002565/0.3749, allocations: 1.257 MB / 481 MB, free: 3.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.3749, allocations: 12.5 kB / 481 MB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/0.3749, allocations: 20 kB / 481 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005325/0.3755, allocations: 142.4 kB / 481.2 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008085/0.3763, allocations: 255.6 kB / 481.4 MB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004318/0.3806, allocations: 4.328 MB / 485.8 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.3816, allocations: 59.97 kB / 485.8 MB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.551e-05/0.3817, allocations: 56 kB / 485.9 MB, free: 14.5 MB / 398.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.0006367/0.3823, allocations: 353.3 kB / 486.2 MB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.3825, allocations: 147.1 kB / 486.4 MB, free: 14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001758/0.3843, allocations: 0.8256 MB / 487.2 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.3843, allocations: 11.94 kB / 487.2 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3843, allocations: 0 / 487.2 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.3843, allocations: 3.984 kB / 487.2 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004009/0.3883, allocations: 2.289 MB / 489.5 MB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.3883, allocations: 12.03 kB / 489.5 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005783/0.3889, allocations: 127.9 kB / 489.6 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000516/0.3894, allocations: 138.4 kB / 489.8 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/0.3894, allocations: 16 kB / 489.8 MB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004557/0.394, allocations: 4.489 MB / 494.3 MB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.394, allocations: 4 kB / 494.3 MB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.3966, allocations: 1.305 MB / 495.6 MB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005772/0.3972, allocations: 207 kB / 495.8 MB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.3973, allocations: 20 kB / 495.8 MB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006113/0.3979, allocations: 39.97 kB / 495.8 MB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3981, allocations: 68.27 kB / 495.9 MB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.073e-05/0.3981, allocations: 23.98 kB / 495.9 MB, free: 3.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001329/0.3994, allocations: 0.8781 MB / 496.8 MB, free: 2.996 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3994, allocations: 3.938 kB / 496.8 MB, free: 2.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001195/0.4006, allocations: 328 kB / 497.1 MB, free: 2.672 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.002825/0.4035, allocations: 1.885 MB / 499 MB, free: 0.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002135/0.4056, allocations: 1.085 MB / 0.4884 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.4056, allocations: 0.875 kB / 0.4884 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.4067, allocations: 0.6902 MB / 0.489 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.4085, allocations: 372.5 kB / 0.4894 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01961/0.4281, allocations: 11.73 MB / 0.5009 GB, free: 2.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.4291, allocations: 1.213 MB / 0.502 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000672/0.4298, allocations: 175.6 kB / 0.5022 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007867/0.4306, allocations: 0.6164 MB / 0.5028 GB, free: 48 kB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4306, allocations: 3.938 kB / 0.5028 GB, free: 44 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08939/0.52, allocations: 32.2 MB / 0.5343 GB, free: 116 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.38/15.9, allocations: 4 kB / 0.5343 GB, free: 112 kB / 446.1 MB " [Timeout remaining time 644] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.969022807898]