Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.001132/0.001132, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001322/0.001322, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8833/0.8833, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.28e-05/1.404e-05, allocations: 3.266 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008002/0.008016, allocations: 10.07 MB / 334.6 MB, free: 5.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005137/0.01315, allocations: 3.415 MB / 338 MB, free: 2.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.0143, allocations: 83.44 kB / 338.1 MB, free: 2.238 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.01577, allocations: 0.846 MB / 338.9 MB, free: 1.387 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002176/0.01795, allocations: 1.013 MB / 340 MB, free: 376 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006487/0.0186, allocations: 447.2 kB / 340.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002999/0.0216, allocations: 3.9 MB / 344.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.02301, allocations: 1.538 MB / 345.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002087/0.0251, allocations: 2.475 MB / 348.3 MB, free: 7.941 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001456/0.02656, allocations: 1.75 MB / 350.1 MB, free: 6.188 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003707/0.02693, allocations: 420 kB / 350.5 MB, free: 5.777 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005429/0.02747, allocations: 0.4997 MB / 351 MB, free: 5.277 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006735/0.02814, allocations: 1.246 MB / 352.2 MB, free: 4.027 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009774/0.02912, allocations: 1.341 MB / 353.6 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003382/0.0325, allocations: 5.629 MB / 359.2 MB, free: 13.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.03251, allocations: 4 kB / 359.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.03251, allocations: 0 / 359.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.908e-05/0.03257, allocations: 0 / 359.2 MB, free: 13.03 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.004263/0.03683, allocations: 3.801 MB / 363 MB, free: 9.176 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.03688, allocations: 15.98 kB / 363 MB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003653/0.03724, allocations: 413 kB / 363.4 MB, free: 8.746 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006019/0.03785, allocations: 406.6 kB / 363.8 MB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.04008, allocations: 2.008 MB / 365.8 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.04021, allocations: 210.1 kB / 366 MB, free: 6.086 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002737/0.04048, allocations: 284.3 kB / 366.3 MB, free: 5.809 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00414/0.04462, allocations: 4.167 MB / 370.5 MB, free: 1.48 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.208e-05/0.04467, allocations: 15.94 kB / 370.5 MB, free: 1.465 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001791/0.04485, allocations: 116 kB / 370.6 MB, free: 1.352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.855e-05/0.04494, allocations: 121.5 kB / 370.7 MB, free: 1.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003354/0.04829, allocations: 3.246 MB / 374 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/0.05893, allocations: 10.77 MB / 384.7 MB, free: 2.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.06058, allocations: 1.728 MB / 386.4 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001256/0.06184, allocations: 1.156 MB / 387.6 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001831/0.06202, allocations: 49.22 kB / 387.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.06206, allocations: 51.88 kB / 387.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=136): time 2.725e-06/0.06206, allocations: 0 / 387.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=151): time 0.008336/0.0704, allocations: 6.518 MB / 394.2 MB, free: 9.363 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.07044, allocations: 72.66 kB / 394.3 MB, free: 9.281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002114/0.07256, allocations: 2.103 MB / 396.4 MB, free: 7.137 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.47e-05/0.07262, allocations: 49.7 kB / 396.4 MB, free: 7.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006165/0.07324, allocations: 1.405 MB / 397.8 MB, free: 5.664 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002492/0.07349, allocations: 0.5306 MB / 398.4 MB, free: 5.129 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003168/0.0738, allocations: 347.4 kB / 398.7 MB, free: 4.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.431e-05/0.07387, allocations: 301.1 kB / 399 MB, free: 4.488 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008321/0.0747, allocations: 0.8705 MB / 399.9 MB, free: 3.617 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.07573, allocations: 1.365 MB / 401.2 MB, free: 2.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002127/0.07785, allocations: 2.322 MB / 403.6 MB, free: 15.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.07786, allocations: 4 kB / 403.6 MB, free: 15.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003163/0.08102, allocations: 3.203 MB / 406.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.08105, allocations: 8 kB / 406.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.08106, allocations: 16 kB / 406.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.08225, allocations: 0.8484 MB / 407.7 MB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006235/0.08288, allocations: 335.4 kB / 408 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.09398, allocations: 19.34 MB / 427.3 MB, free: 6.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.09499, allocations: 103.9 kB / 427.4 MB, free: 6.328 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.42e-05/0.09508, allocations: 80 kB / 427.5 MB, free: 6.25 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001414/0.0965, allocations: 0.9421 MB / 428.4 MB, free: 5.297 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.09672, allocations: 226.6 kB / 428.7 MB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002973/0.09969, allocations: 2.538 MB / 431.2 MB, free: 2.488 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.0997, allocations: 16 kB / 431.2 MB, free: 2.473 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.09971, allocations: 8 kB / 431.2 MB, free: 2.465 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.09972, allocations: 7.969 kB / 431.2 MB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006094/0.1058, allocations: 5.473 MB / 436.7 MB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.1058, allocations: 4 kB / 436.7 MB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004239/0.1062, allocations: 195.7 kB / 436.9 MB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.1076, allocations: 0.7269 MB / 437.6 MB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.467e-05/0.1077, allocations: 39.92 kB / 437.7 MB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1525/0.2602, allocations: 17.03 MB / 454.7 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.2602, allocations: 9.094 kB / 454.7 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003691/0.2639, allocations: 3.713 MB / 458.4 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006289/0.2645, allocations: 416.5 kB / 458.8 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.2647, allocations: 36.86 kB / 458.9 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005545/0.2652, allocations: 107.4 kB / 459 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.2655, allocations: 145.7 kB / 459.1 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.427e-05/0.2655, allocations: 46.78 kB / 459.2 MB, free: 105.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001286/0.2668, allocations: 1.402 MB / 460.6 MB, free: 105.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2668, allocations: 0 / 460.6 MB, free: 105.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001483/0.2683, allocations: 0.6549 MB / 461.2 MB, free: 105.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,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.003145/0.2714, allocations: 4.37 MB / 465.6 MB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.2738, allocations: 3.367 MB / 468.9 MB, free: 99.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.2738, allocations: 7.75 kB / 469 MB, free: 99.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.2749, allocations: 2.139 MB / 471.1 MB, free: 97.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.2764, allocations: 0.6803 MB / 471.8 MB, free: 96.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01996/0.2963, allocations: 22.51 MB / 494.3 MB, free: 74.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.2974, allocations: 1.736 MB / 496 MB, free: 72.79 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008725/0.2983, allocations: 498.8 kB / 496.5 MB, free: 72.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007283/0.299, allocations: 1.09 MB / 497.6 MB, free: 71.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/0.299, allocations: 0 / 497.6 MB, free: 71.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07531/0.3743, allocations: 64.02 MB / 0.5484 GB, free: 7.816 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.794/9.168, allocations: 17.86 kB / 0.5485 GB, free: 7.809 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.017142226919532]