Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 202.1 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.421/1.421, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 47.92 kB / 377.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2261, allocations: 53.38 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01276/0.2388, allocations: 10.04 MB / 441.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006868/0.2457, allocations: 3.396 MB / 444.6 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.2471, allocations: 91.38 kB / 444.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001991/0.2491, allocations: 0.819 MB / 445.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002335/0.2515, allocations: 0.9864 MB / 446.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008741/0.2523, allocations: 443.4 kB / 446.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004156/0.2565, allocations: 3.755 MB / 450.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002228/0.2587, allocations: 1.589 MB / 452.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002271/0.261, allocations: 1.702 MB / 453.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002763/0.2638, allocations: 2.02 MB / 455.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005608/0.2643, allocations: 420 kB / 456.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008799/0.2652, allocations: 0.5037 MB / 456.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001228/0.2664, allocations: 1.208 MB / 458.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.2686, allocations: 1.579 MB / 459.6 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006275/0.2748, allocations: 5.601 MB / 465.2 MB, free: 4.305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2748, allocations: 0 / 465.2 MB, free: 4.305 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2748, allocations: 4 kB / 465.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.275, allocations: 0 / 465.2 MB, free: 4.301 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.007411/0.2824, allocations: 3.836 MB / 469.1 MB, free: 420 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2824, allocations: 8.031 kB / 469.1 MB, free: 412 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005437/0.283, allocations: 413.1 kB / 469.5 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009446/0.2839, allocations: 406.5 kB / 469.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004012/0.2879, allocations: 2.008 MB / 471.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.2881, allocations: 217.8 kB / 472.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004538/0.2886, allocations: 283.9 kB / 472.4 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006467/0.295, allocations: 4.162 MB / 476.6 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.909e-05/0.2951, allocations: 7.953 kB / 476.6 MB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002733/0.2954, allocations: 120 kB / 476.7 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001361/0.2955, allocations: 117.5 kB / 476.8 MB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00549/0.301, allocations: 3.25 MB / 480 MB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01905/0.32, allocations: 10.77 MB / 490.8 MB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/0.3227, allocations: 1.742 MB / 492.6 MB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002116/0.3248, allocations: 1.146 MB / 493.7 MB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000218/0.3251, allocations: 49.27 kB / 493.7 MB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.3251, allocations: 55.88 kB / 493.8 MB, free: 7.164 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.186e-06/0.3251, allocations: 0 / 493.8 MB, free: 7.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01407/0.3392, allocations: 6.528 MB / 0.4886 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.3392, allocations: 68.72 kB / 0.4887 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003126/0.3424, allocations: 2.095 MB / 0.4907 GB, free: 14.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001536/0.3425, allocations: 49.7 kB / 0.4908 GB, free: 14.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.3436, allocations: 1.405 MB / 0.4921 GB, free: 12.9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004847/0.3441, allocations: 0.5346 MB / 0.4927 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005713/0.3447, allocations: 347.4 kB / 0.493 GB, free: 12.01 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3448, allocations: 305.1 kB / 0.4933 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.3461, allocations: 0.8666 MB / 0.4941 GB, free: 10.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/0.3479, allocations: 1.369 MB / 0.4955 GB, free: 9.266 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003171/0.3511, allocations: 2.33 MB / 0.4977 GB, free: 6.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/0.3511, allocations: 7.75 kB / 0.4977 GB, free: 6.727 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005764/0.3569, allocations: 3.191 MB / 0.5009 GB, free: 3.492 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.3569, allocations: 12 kB / 0.5009 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.772e-05/0.3569, allocations: 16 kB / 0.5009 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002441/0.3594, allocations: 0.8447 MB / 0.5017 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.3607, allocations: 343.4 kB / 0.502 GB, free: 2.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01979/0.3804, allocations: 19.37 MB / 0.521 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.3821, allocations: 99.88 kB / 0.521 GB, free: 13.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.3823, allocations: 68 kB / 0.5211 GB, free: 13.46 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.001626/0.3839, allocations: 0.9486 MB / 0.522 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004383/0.3843, allocations: 226.5 kB / 0.5223 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004593/0.3889, allocations: 2.538 MB / 0.5247 GB, free: 9.699 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.3889, allocations: 12 kB / 0.5247 GB, free: 9.688 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.389, allocations: 8 kB / 0.5248 GB, free: 9.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.389, allocations: 7.969 kB / 0.5248 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.3991, allocations: 5.492 MB / 0.5301 GB, free: 4.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.3991, allocations: 4 kB / 0.5301 GB, free: 4.016 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008194/0.4, allocations: 199.7 kB / 0.5303 GB, free: 3.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001994/0.4019, allocations: 0.7225 MB / 0.531 GB, free: 3.066 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.402, allocations: 39.98 kB / 0.5311 GB, free: 3.027 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1882/0.5903, allocations: 17.04 MB / 0.5477 GB, free: 88.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.5903, allocations: 4.125 kB / 0.5477 GB, free: 88.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004702/0.595, allocations: 3.725 MB / 0.5513 GB, free: 87.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009884/0.596, allocations: 418.1 kB / 0.5517 GB, free: 87.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002724/0.5962, allocations: 43.05 kB / 0.5518 GB, free: 87.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.5973, allocations: 100.5 kB / 0.5519 GB, free: 87.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.5976, allocations: 143.9 kB / 0.552 GB, free: 87.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.475e-05/0.5976, allocations: 48.42 kB / 0.5521 GB, free: 87.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001568/0.5992, allocations: 1.407 MB / 0.5534 GB, free: 86.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5992, allocations: 3.938 kB / 0.5534 GB, free: 86.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001916/0.6011, allocations: 0.658 MB / 0.5541 GB, free: 86.41 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.004525/0.6056, allocations: 4.375 MB / 0.5584 GB, free: 83.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003458/0.6091, allocations: 3.373 MB / 0.5617 GB, free: 80.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.6091, allocations: 0 / 0.5617 GB, free: 80.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001893/0.611, allocations: 2.141 MB / 0.5637 GB, free: 78.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/0.6139, allocations: 0.6828 MB / 0.5644 GB, free: 77.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02626/0.6401, allocations: 22.48 MB / 0.5864 GB, free: 55.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001411/0.6415, allocations: 1.727 MB / 0.588 GB, free: 53.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00125/0.6428, allocations: 0.4949 MB / 0.5885 GB, free: 53.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/0.6438, allocations: 1.089 MB / 0.5896 GB, free: 51.92 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.6438, allocations: 0 / 0.5896 GB, free: 51.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.157/0.8008, allocations: 64.79 MB / 0.6529 GB, free: 3.934 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/14.25, allocations: 19.88 kB / 0.6529 GB, free: 3.918 MB / 462.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 16.81345127298846]