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.001329/0.001329, allocations: 120.2 kB / 18.5 MB, free: 4.535 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.00139/0.00139, allocations: 222.2 kB / 21.46 MB, free: 1.582 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.564/1.564, allocations: 230.4 MB / 254.7 MB, free: 15.03 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 59.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1109, allocations: 53.37 MB / 427.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2219/0.3327, allocations: 12.22 MB / 439.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007136/0.3399, allocations: 3.306 MB / 442.6 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0025/0.3424, allocations: 39.5 kB / 442.6 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002094/0.3445, allocations: 0.6957 MB / 443.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003595/0.3481, allocations: 0.7871 MB / 444.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.3492, allocations: 399.5 kB / 444.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003579/0.3528, allocations: 2.42 MB / 446.9 MB, free: 320 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.354, allocations: 0.644 MB / 447.6 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/0.3561, allocations: 0.9371 MB / 448.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001654/0.3578, allocations: 0.982 MB / 449.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003389/0.3581, allocations: 229.8 kB / 449.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006699/0.3588, allocations: 269.8 kB / 450 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004084/0.3592, allocations: 459.8 kB / 450.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001224/0.3604, allocations: 1.074 MB / 451.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004081/0.3645, allocations: 2.839 MB / 454.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.3645, allocations: 2.031 kB / 454.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.3645, allocations: 0 / 454.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.041e-05/0.3646, allocations: 4 kB / 454.3 MB, free: 12.76 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.00495/0.3695, allocations: 2.219 MB / 456.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3696, allocations: 9.531 kB / 456.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.113e-05/0.3696, allocations: 41.31 kB / 456.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002577/0.3699, allocations: 220.2 kB / 456.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.3709, allocations: 292.7 kB / 457.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/0.3731, allocations: 1.136 MB / 458.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-05/0.3732, allocations: 116.9 kB / 458.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/0.3734, allocations: 157.3 kB / 458.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002667/0.3761, allocations: 1.509 MB / 460 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.785e-05/0.3762, allocations: 7.141 kB / 460 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.3763, allocations: 66.66 kB / 460.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/0.3763, allocations: 41.75 kB / 460.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002147/0.3785, allocations: 1.045 MB / 461.2 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009865/0.3883, allocations: 6.255 MB / 467.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001818/0.3902, allocations: 0.5759 MB / 468 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.3912, allocations: 428.9 kB / 468.4 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.687e-05/0.3912, allocations: 7.312 kB / 468.4 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.3913, allocations: 42.62 kB / 468.5 MB, free: 2.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.156e-06/0.3913, allocations: 0 / 468.5 MB, free: 2.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005946/0.3972, allocations: 2.398 MB / 470.9 MB, free: 1.371 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.39e-05/0.3973, allocations: 114.7 kB / 471 MB, free: 1.242 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002086/0.3994, allocations: 1.306 MB / 472.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.752e-05/0.3994, allocations: 40.17 kB / 472.3 MB, free: 484 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007167/0.4002, allocations: 0.8654 MB / 473.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/0.4004, allocations: 273.4 kB / 473.5 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.4007, allocations: 212 kB / 473.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.4009, allocations: 347.6 kB / 474 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005943/0.4014, allocations: 280.8 kB / 474.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009505/0.4024, allocations: 0.7437 MB / 475 MB, free: 14.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.404, allocations: 1.078 MB / 476.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.404, allocations: 2.438 kB / 476.1 MB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002495/0.4065, allocations: 1.269 MB / 477.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.4065, allocations: 11.66 kB / 477.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.4065, allocations: 15.25 kB / 477.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005423/0.407, allocations: 144 kB / 477.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008654/0.4079, allocations: 250 kB / 477.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00435/0.4123, allocations: 4.647 MB / 482.4 MB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.4137, allocations: 60.8 kB / 482.5 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.783e-05/0.4138, allocations: 59.42 kB / 482.6 MB, free: 7.641 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.0007304/0.4145, allocations: 354.3 kB / 482.9 MB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002865/0.4148, allocations: 145 kB / 483 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001893/0.4167, allocations: 0.829 MB / 483.9 MB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/0.4167, allocations: 8 kB / 483.9 MB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4167, allocations: 0 / 483.9 MB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.4167, allocations: 3.984 kB / 483.9 MB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004326/0.4211, allocations: 2.323 MB / 486.2 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4211, allocations: 7.938 kB / 486.2 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005879/0.4217, allocations: 128.3 kB / 486.3 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004617/0.4221, allocations: 141 kB / 486.5 MB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.4222, allocations: 20 kB / 486.5 MB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00461/0.4268, allocations: 4.784 MB / 491.3 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.4268, allocations: 8.062 kB / 491.3 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00273/0.4295, allocations: 1.308 MB / 492.6 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006955/0.4302, allocations: 288.1 kB / 492.9 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.4304, allocations: 24.12 kB / 492.9 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006501/0.431, allocations: 35.97 kB / 492.9 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.4312, allocations: 72.3 kB / 493 MB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.4312, allocations: 24 kB / 493 MB, free: 12.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001358/0.4326, allocations: 0.8742 MB / 493.9 MB, free: 11.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4326, allocations: 0 / 493.9 MB, free: 11.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001401/0.434, allocations: 331.9 kB / 494.2 MB, free: 11.55 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.002863/0.4368, allocations: 1.889 MB / 496.1 MB, free: 9.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002049/0.4389, allocations: 1.088 MB / 497.2 MB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.4389, allocations: 4 kB / 497.2 MB, free: 8.445 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.44, allocations: 0.6928 MB / 497.9 MB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001867/0.4419, allocations: 365.5 kB / 498.3 MB, free: 7.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01965/0.4615, allocations: 11.71 MB / 0.498 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008824/0.4624, allocations: 1.217 MB / 0.4992 GB, free: 9.723 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000671/0.463, allocations: 175.6 kB / 0.4994 GB, free: 9.547 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007721/0.4638, allocations: 0.6125 MB / 0.5 GB, free: 8.934 MB / 414.1 MB Notification: Performance of SimCode: time 1.693e-06/0.4638, allocations: 0 / 0.5 GB, free: 8.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0753/0.5391, allocations: 31.46 MB / 0.5307 GB, free: 9.812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.41, allocations: 13.95 kB / 0.5307 GB, free: 9.805 MB / 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.73147883301135]