Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.001533/0.001533, allocations: 114 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.002061/0.002061, allocations: 215.5 kB / 23.74 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.453/1.453, allocations: 230.5 MB / 257.4 MB, free: 7.977 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.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 67.91 kB / 377.8 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2686, allocations: 53.4 MB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.01019/0.2788, allocations: 8.067 MB / 439.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005116/0.2839, allocations: 2.649 MB / 441.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007542/0.2847, allocations: 27.88 kB / 441.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.2861, allocations: 0.5638 MB / 442.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001105/0.2872, allocations: 496.4 kB / 443 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004854/0.2877, allocations: 247.6 kB / 443.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.2893, allocations: 1.428 MB / 444.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007391/0.2901, allocations: 403.3 kB / 445 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008829/0.291, allocations: 0.572 MB / 445.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007354/0.2917, allocations: 0.5755 MB / 446.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001737/0.2919, allocations: 136 kB / 446.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003309/0.2922, allocations: 176 kB / 446.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.2924, allocations: 279 kB / 446.8 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006112/0.293, allocations: 0.6415 MB / 447.4 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.295, allocations: 1.704 MB / 449.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2951, allocations: 4 kB / 449.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2951, allocations: 0 / 449.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.466e-05/0.2951, allocations: 0 / 449.1 MB, free: 4.633 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002416/0.2975, allocations: 1.392 MB / 450.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.2975, allocations: 12.03 kB / 450.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/0.2977, allocations: 144.3 kB / 450.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005657/0.2983, allocations: 176.1 kB / 450.8 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.2996, allocations: 0.6609 MB / 451.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.236e-05/0.2996, allocations: 70 kB / 451.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.2997, allocations: 96 kB / 451.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.3013, allocations: 0.9229 MB / 452.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.308e-05/0.3013, allocations: 7.953 kB / 452.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.692e-05/0.3014, allocations: 40 kB / 452.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.3014, allocations: 24 kB / 452.7 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.3026, allocations: 0.6285 MB / 453.3 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005085/0.3077, allocations: 3.776 MB / 457.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005371/0.3082, allocations: 265 kB / 457.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002813/0.3085, allocations: 132.8 kB / 457.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.3085, allocations: 11.98 kB / 457.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.3086, allocations: 38.48 kB / 457.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.004e-06/0.3086, allocations: 3.938 kB / 457.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002347/0.3109, allocations: 1.043 MB / 458.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.311, allocations: 81.11 kB / 458.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.3121, allocations: 0.8292 MB / 459.5 MB, free: 9.895 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.3122, allocations: 33.7 kB / 459.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004755/0.3126, allocations: 0.5851 MB / 460.1 MB, free: 9.262 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.3128, allocations: 130.9 kB / 460.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.3129, allocations: 130.6 kB / 460.3 MB, free: 9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3131, allocations: 337.9 kB / 460.7 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.3134, allocations: 149.9 kB / 460.8 MB, free: 8.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000603/0.314, allocations: 460 kB / 461.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009635/0.315, allocations: 0.6435 MB / 461.9 MB, free: 7.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.315, allocations: 4 kB / 461.9 MB, free: 7.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001167/0.3162, allocations: 0.6889 MB / 462.6 MB, free: 6.438 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.3162, allocations: 8 kB / 462.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.3162, allocations: 12 kB / 462.6 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.3164, allocations: 36.84 kB / 462.6 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000491/0.3169, allocations: 159.7 kB / 462.8 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.3181, allocations: 1.295 MB / 464.1 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004764/0.3185, allocations: 31.98 kB / 464.1 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.245e-05/0.3186, allocations: 32 kB / 464.2 MB, free: 4.754 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003827/0.319, allocations: 257.8 kB / 464.4 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.3191, allocations: 91.38 kB / 464.5 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007554/0.3198, allocations: 378.4 kB / 464.9 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.3198, allocations: 4 kB / 464.9 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3198, allocations: 4 kB / 464.9 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3199, allocations: 0 / 464.9 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.3218, allocations: 1.234 MB / 466.1 MB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.3218, allocations: 11.92 kB / 466.1 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.3221, allocations: 71.89 kB / 466.2 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-05/0.3222, allocations: 25.06 kB / 466.2 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.3222, allocations: 15.94 kB / 466.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/0.3233, allocations: 1.26 MB / 467.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.3233, allocations: 4.031 kB / 467.5 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.3243, allocations: 0.6285 MB / 468.1 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002358/0.3245, allocations: 119.4 kB / 468.2 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.438e-05/0.3246, allocations: 8 kB / 468.2 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003488/0.325, allocations: 31.92 kB / 468.3 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/0.325, allocations: 23.95 kB / 468.3 MB, free: 356 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.3251, allocations: 12 kB / 468.3 MB, free: 344 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007848/0.3258, allocations: 0.5615 MB / 468.9 MB, free: 15.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3258, allocations: 4 kB / 468.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006907/0.3265, allocations: 188 kB / 469.1 MB, free: 15.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001467/0.328, allocations: 1.219 MB / 470.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000961/0.329, allocations: 498.9 kB / 470.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.329, allocations: 1.875 kB / 470.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004125/0.3294, allocations: 258.9 kB / 471 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009754/0.3304, allocations: 212.7 kB / 471.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.3408, allocations: 7.127 MB / 478.4 MB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006995/0.3415, allocations: 0.9923 MB / 479.4 MB, free: 4.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004032/0.3419, allocations: 102.9 kB / 479.5 MB, free: 4.645 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004605/0.3424, allocations: 371.3 kB / 479.8 MB, free: 4.281 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3424, allocations: 0 / 479.8 MB, free: 4.281 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08675/0.4292, allocations: 18.5 MB / 498.3 MB, free: 2.012 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.34, allocations: 4.062 kB / 498.3 MB, free: 2.008 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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: 17.150975931901485]