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.001584/0.001584, 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.00177/0.00177, allocations: 214.9 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.558/1.558, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.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 0.002036/0.002036, allocations: 63.91 kB / 377.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2922, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01409/0.3063, allocations: 11.54 MB / 442.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007506/0.3138, allocations: 3.617 MB / 446.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002201/0.316, allocations: 83.44 kB / 446.4 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002668/0.3186, allocations: 0.8891 MB / 447.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003456/0.3221, allocations: 0.9864 MB / 448.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.3236, allocations: 451.3 kB / 448.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005673/0.3293, allocations: 3.763 MB / 452.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003541/0.3328, allocations: 1.596 MB / 454.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003267/0.3361, allocations: 1.706 MB / 455.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003874/0.34, allocations: 2.02 MB / 457.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009866/0.341, allocations: 420 kB / 458.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.3425, allocations: 0.4998 MB / 458.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001403/0.3439, allocations: 1.223 MB / 460 MB, free: 9.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00319/0.3471, allocations: 1.937 MB / 461.9 MB, free: 7.797 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007219/0.3543, allocations: 5.566 MB / 467.5 MB, free: 2.211 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.3543, allocations: 4 kB / 467.5 MB, free: 2.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3543, allocations: 4 kB / 467.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001875/0.3545, allocations: 0 / 467.5 MB, free: 2.203 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.008747/0.3632, allocations: 3.832 MB / 471.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.3633, allocations: 12.03 kB / 471.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006466/0.3639, allocations: 413 kB / 471.7 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009896/0.3649, allocations: 406.6 kB / 472.1 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003998/0.3689, allocations: 2.001 MB / 474.1 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.3691, allocations: 217.8 kB / 474.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004024/0.3695, allocations: 284 kB / 474.6 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006308/0.3758, allocations: 3.861 MB / 478.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.157e-05/0.3759, allocations: 11.95 kB / 478.5 MB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002537/0.3761, allocations: 116 kB / 478.6 MB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.3763, allocations: 133.4 kB / 478.7 MB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00563/0.3819, allocations: 3.246 MB / 482 MB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01931/0.4012, allocations: 11.64 MB / 493.6 MB, free: 7.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002678/0.4039, allocations: 1.754 MB / 495.4 MB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002076/0.406, allocations: 1.149 MB / 496.5 MB, free: 4.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002266/0.4062, allocations: 47.14 kB / 496.6 MB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/0.4063, allocations: 51.88 kB / 496.6 MB, free: 4.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.376e-06/0.4063, allocations: 0 / 496.6 MB, free: 4.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01408/0.4204, allocations: 6.534 MB / 0.4914 GB, free: 13.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.4204, allocations: 72.66 kB / 0.4914 GB, free: 13.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/0.4236, allocations: 2.068 MB / 0.4935 GB, free: 11.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.4237, allocations: 49.7 kB / 0.4935 GB, free: 11.72 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.4249, allocations: 1.405 MB / 0.4949 GB, free: 10.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004958/0.4254, allocations: 0.5306 MB / 0.4954 GB, free: 9.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005292/0.4259, allocations: 355.3 kB / 0.4957 GB, free: 9.414 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4261, allocations: 305.1 kB / 0.496 GB, free: 9.113 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.4275, allocations: 0.8705 MB / 0.4969 GB, free: 8.242 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/0.4293, allocations: 1.369 MB / 0.4982 GB, free: 6.668 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003319/0.4326, allocations: 2.322 MB / 0.5005 GB, free: 4.141 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.4326, allocations: 7.938 kB / 0.5005 GB, free: 4.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005861/0.4385, allocations: 3.191 MB / 0.5036 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.4385, allocations: 12 kB / 0.5036 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/0.4385, allocations: 16 kB / 0.5036 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/0.441, allocations: 0.8488 MB / 0.5045 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.4422, allocations: 343.4 kB / 0.5048 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02035/0.4626, allocations: 19.46 MB / 0.5238 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.4643, allocations: 99.83 kB / 0.5239 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002109/0.4645, allocations: 76 kB / 0.524 GB, free: 10.76 MB / 446.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: 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.001843/0.4663, allocations: 0.9379 MB / 0.5249 GB, free: 9.816 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005393/0.4669, allocations: 238.5 kB / 0.5251 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00466/0.4715, allocations: 2.534 MB / 0.5276 GB, free: 7.008 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.4716, allocations: 12 kB / 0.5276 GB, free: 6.996 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.866e-05/0.4716, allocations: 8 kB / 0.5276 GB, free: 6.988 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.4716, allocations: 11.97 kB / 0.5276 GB, free: 6.977 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/0.4827, allocations: 5.773 MB / 0.5332 GB, free: 1.047 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.4828, allocations: 7.938 kB / 0.5333 GB, free: 1.039 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007756/0.4835, allocations: 191.7 kB / 0.5334 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/0.4854, allocations: 0.7387 MB / 0.5342 GB, free: 84 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.4855, allocations: 32 kB / 0.5342 GB, free: 52 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2209/0.7064, allocations: 17.12 MB / 0.5509 GB, free: 85.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.7064, allocations: 14.02 kB / 0.5509 GB, free: 85.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004857/0.7113, allocations: 3.72 MB / 0.5546 GB, free: 83.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/0.7125, allocations: 416.5 kB / 0.555 GB, free: 83.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002594/0.7127, allocations: 38.41 kB / 0.555 GB, free: 83.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000961/0.7137, allocations: 110.3 kB / 0.5551 GB, free: 83.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003303/0.714, allocations: 143.4 kB / 0.5552 GB, free: 83.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-05/0.7141, allocations: 49.86 kB / 0.5553 GB, free: 83.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001683/0.7158, allocations: 1.404 MB / 0.5566 GB, free: 83.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7158, allocations: 0 / 0.5566 GB, free: 83.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002022/0.7178, allocations: 0.6569 MB / 0.5573 GB, free: 82.96 MB / 446.1 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.004542/0.7224, allocations: 4.373 MB / 0.5616 GB, free: 80.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003527/0.7259, allocations: 3.369 MB / 0.5648 GB, free: 77.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/0.7259, allocations: 0 / 0.5648 GB, free: 77.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001904/0.7278, allocations: 2.147 MB / 0.5669 GB, free: 75.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002725/0.7305, allocations: 0.6818 MB / 0.5676 GB, free: 75.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02522/0.7557, allocations: 22.49 MB / 0.5896 GB, free: 52.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001358/0.7571, allocations: 2.288 MB / 0.5918 GB, free: 50.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001196/0.7583, allocations: 0.4949 MB / 0.5923 GB, free: 49.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009472/0.7592, allocations: 1.085 MB / 0.5933 GB, free: 48.48 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.7592, allocations: 7.938 kB / 0.5934 GB, free: 48.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1231/0.8824, allocations: 61.77 MB / 0.6537 GB, free: 3.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.73/16.61, allocations: 1.969 kB / 0.6537 GB, free: 3.27 MB / 462.1 MB " [Timeout remaining time 643] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/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: 19.41067768004723]