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.0009147/0.0009147, allocations: 79.7 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008646/0.0008646, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8528/0.8528, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.273e-06/1.273e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.368e-06/1.064e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.007441/0.007452, allocations: 10.07 MB / 334.7 MB, free: 5.809 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003869/0.01132, allocations: 3.416 MB / 338.1 MB, free: 2.375 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005777/0.0119, allocations: 87.38 kB / 338.2 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.0131, allocations: 0.8344 MB / 339 MB, free: 1.449 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001169/0.01427, allocations: 1.017 MB / 340 MB, free: 436 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004251/0.0147, allocations: 435.3 kB / 340.4 MB, free: 0 / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002061/0.01676, allocations: 3.885 MB / 344.3 MB, free: 12.1 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.01812, allocations: 1.538 MB / 345.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.01979, allocations: 2.468 MB / 348.3 MB, free: 8.031 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.02108, allocations: 1.75 MB / 350.1 MB, free: 6.277 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003509/0.02143, allocations: 420 kB / 350.5 MB, free: 5.867 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005046/0.02194, allocations: 0.5036 MB / 351 MB, free: 5.363 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006392/0.02258, allocations: 1.246 MB / 352.2 MB, free: 4.113 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009815/0.02356, allocations: 1.341 MB / 353.6 MB, free: 2.77 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002941/0.0265, allocations: 5.625 MB / 359.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.02651, allocations: 0 / 359.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.02651, allocations: 0 / 359.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.494e-05/0.02655, allocations: 0 / 359.2 MB, free: 13.13 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.003892/0.03044, allocations: 3.805 MB / 363 MB, free: 9.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.03048, allocations: 8.031 kB / 363 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003288/0.03081, allocations: 417 kB / 363.4 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005184/0.03133, allocations: 410.5 kB / 363.8 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002054/0.03338, allocations: 2.008 MB / 365.8 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.675e-05/0.03348, allocations: 210.1 kB / 366 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.03372, allocations: 280.3 kB / 366.3 MB, free: 5.906 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003747/0.03747, allocations: 4.17 MB / 370.5 MB, free: 1.574 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.574e-05/0.03752, allocations: 7.953 kB / 370.5 MB, free: 1.566 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001703/0.03769, allocations: 120 kB / 370.6 MB, free: 1.449 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.536e-05/0.03776, allocations: 125.5 kB / 370.7 MB, free: 1.324 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003193/0.04096, allocations: 3.246 MB / 374 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009707/0.05066, allocations: 10.77 MB / 384.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001553/0.05222, allocations: 1.738 MB / 386.5 MB, free: 1.273 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.05339, allocations: 1.149 MB / 387.6 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001376/0.05352, allocations: 53.2 kB / 387.7 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.05355, allocations: 51.88 kB / 387.7 MB, free: 12 kB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 2.705e-06/0.05356, allocations: 4.047 kB / 387.7 MB, free: 8 kB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.007453/0.06101, allocations: 6.516 MB / 394.2 MB, free: 9.438 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.06104, allocations: 68.72 kB / 394.3 MB, free: 9.359 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/0.06283, allocations: 2.099 MB / 396.4 MB, free: 7.219 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.539e-05/0.0629, allocations: 53.7 kB / 396.5 MB, free: 7.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006011/0.0635, allocations: 1.401 MB / 397.9 MB, free: 5.746 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/0.06374, allocations: 0.5268 MB / 398.4 MB, free: 5.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003139/0.06406, allocations: 343.4 kB / 398.7 MB, free: 4.875 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.889e-05/0.06411, allocations: 309.1 kB / 399 MB, free: 4.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008328/0.06495, allocations: 0.8744 MB / 399.9 MB, free: 3.695 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.06597, allocations: 1.362 MB / 401.3 MB, free: 2.121 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001999/0.06797, allocations: 2.322 MB / 403.6 MB, free: 15.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.06798, allocations: 4 kB / 403.6 MB, free: 15.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003137/0.07111, allocations: 3.192 MB / 406.8 MB, free: 12.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.07113, allocations: 18.91 kB / 406.8 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.07115, allocations: 12 kB / 406.8 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.07231, allocations: 0.8482 MB / 407.7 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.07293, allocations: 351.4 kB / 408 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.08317, allocations: 19.35 MB / 427.4 MB, free: 6.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000694/0.08386, allocations: 95.81 kB / 427.4 MB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-05/0.08396, allocations: 84.05 kB / 427.5 MB, free: 6.324 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.0009785/0.08493, allocations: 0.9305 MB / 428.5 MB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001954/0.08513, allocations: 234.6 kB / 428.7 MB, free: 5.152 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002619/0.08775, allocations: 2.53 MB / 431.2 MB, free: 2.582 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.08776, allocations: 19.94 kB / 431.2 MB, free: 2.562 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.08776, allocations: 4 kB / 431.2 MB, free: 2.559 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.08777, allocations: 15.97 kB / 431.3 MB, free: 2.543 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005243/0.09301, allocations: 5.481 MB / 436.7 MB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.09302, allocations: 4 kB / 436.7 MB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003943/0.09341, allocations: 195.7 kB / 436.9 MB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009571/0.09437, allocations: 0.7229 MB / 437.7 MB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.997e-05/0.09443, allocations: 43.92 kB / 437.7 MB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1329/0.2273, allocations: 17.02 MB / 454.7 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.2273, allocations: 4.125 kB / 454.7 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003404/0.2307, allocations: 3.727 MB / 458.5 MB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006206/0.2313, allocations: 412.4 kB / 458.9 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.2315, allocations: 39.58 kB / 458.9 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006225/0.2321, allocations: 104.4 kB / 459 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.2323, allocations: 150.4 kB / 459.1 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.108e-05/0.2324, allocations: 40.72 kB / 459.2 MB, free: 105.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001197/0.2335, allocations: 1.406 MB / 460.6 MB, free: 105.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2335, allocations: 0 / 460.6 MB, free: 105.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001363/0.2349, allocations: 0.6578 MB / 461.2 MB, free: 105.3 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.003062/0.238, allocations: 4.362 MB / 465.6 MB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.2402, allocations: 3.368 MB / 469 MB, free: 99.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.2402, allocations: 4 kB / 469 MB, free: 99.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.2413, allocations: 2.137 MB / 471.1 MB, free: 97.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.2427, allocations: 0.6863 MB / 471.8 MB, free: 96.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02159/0.2643, allocations: 22.51 MB / 494.3 MB, free: 74.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.2653, allocations: 1.731 MB / 496 MB, free: 72.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008785/0.2662, allocations: 0.4949 MB / 496.5 MB, free: 72.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006717/0.2669, allocations: 1.094 MB / 497.6 MB, free: 71.23 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.2669, allocations: 0 / 497.6 MB, free: 71.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07826/0.3452, allocations: 64.04 MB / 0.5485 GB, free: 7.977 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.546/8.891, allocations: 3.984 kB / 0.5485 GB, free: 7.973 MB / 410.7 MB " [Timeout remaining time 651] (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/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_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: 10.636876014992595]