Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_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_0_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.001602/0.001602, allocations: 51.92 kB / 370.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.236, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01439/0.2504, allocations: 11.52 MB / 434.2 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007298/0.2577, allocations: 3.555 MB / 437.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001762/0.2594, allocations: 83.44 kB / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002747/0.2622, allocations: 0.8969 MB / 438.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003266/0.2654, allocations: 0.9708 MB / 439.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.2669, allocations: 455.2 kB / 440.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00555/0.2724, allocations: 3.732 MB / 443.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003392/0.2758, allocations: 1.596 MB / 445.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003007/0.2788, allocations: 1.686 MB / 447.1 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003604/0.2824, allocations: 2.02 MB / 449.2 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001266/0.2837, allocations: 420 kB / 449.6 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001854/0.2855, allocations: 0.4998 MB / 450.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002003/0.2875, allocations: 1.219 MB / 451.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003712/0.2912, allocations: 1.929 MB / 453.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008242/0.2995, allocations: 5.566 MB / 458.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.2995, allocations: 0 / 458.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2995, allocations: 0 / 458.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002185/0.2997, allocations: 3.938 kB / 458.8 MB, free: 10.3 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.009709/0.3094, allocations: 3.82 MB / 462.6 MB, free: 6.422 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.3095, allocations: 12.03 kB / 462.6 MB, free: 6.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007399/0.3102, allocations: 413 kB / 463 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/0.3113, allocations: 410.5 kB / 463.4 MB, free: 5.594 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004423/0.3157, allocations: 2.001 MB / 465.4 MB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.3159, allocations: 217.8 kB / 465.6 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004652/0.3164, allocations: 291.9 kB / 465.9 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007814/0.3242, allocations: 3.861 MB / 469.8 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.397e-05/0.3243, allocations: 7.953 kB / 469.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002863/0.3246, allocations: 120 kB / 469.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.3247, allocations: 117.5 kB / 470 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005929/0.3306, allocations: 3.25 MB / 473.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01993/0.3506, allocations: 11.66 MB / 484.9 MB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/0.3533, allocations: 1.738 MB / 486.7 MB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002133/0.3554, allocations: 1.156 MB / 487.8 MB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002322/0.3557, allocations: 53.27 kB / 487.9 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.882e-05/0.3557, allocations: 43.88 kB / 487.9 MB, free: 12.65 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.026e-06/0.3557, allocations: 0 / 487.9 MB, free: 12.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01445/0.3702, allocations: 6.528 MB / 494.4 MB, free: 6.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.3702, allocations: 68.72 kB / 494.5 MB, free: 5.992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/0.374, allocations: 2.064 MB / 496.6 MB, free: 3.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001858/0.3742, allocations: 53.7 kB / 496.6 MB, free: 3.828 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001235/0.3754, allocations: 1.401 MB / 498 MB, free: 2.414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006046/0.376, allocations: 0.5384 MB / 498.6 MB, free: 1.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006999/0.3767, allocations: 351.4 kB / 498.9 MB, free: 1.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3769, allocations: 309.1 kB / 499.2 MB, free: 1.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/0.3784, allocations: 0.8666 MB / 0.4884 GB, free: 356 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.3803, allocations: 1.366 MB / 0.4897 GB, free: 14.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003477/0.3838, allocations: 2.326 MB / 0.492 GB, free: 12.24 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.578e-05/0.3838, allocations: 7.938 kB / 0.492 GB, free: 12.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006232/0.39, allocations: 3.192 MB / 0.4951 GB, free: 9 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.267e-05/0.39, allocations: 16.06 kB / 0.4951 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.193e-05/0.3901, allocations: 16 kB / 0.4951 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002393/0.3925, allocations: 0.8366 MB / 0.4959 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.3938, allocations: 347.4 kB / 0.4963 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02087/0.4146, allocations: 19.46 MB / 0.5153 GB, free: 3.035 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.4163, allocations: 95.89 kB / 0.5154 GB, free: 2.941 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003081/0.4166, allocations: 72.08 kB / 0.5154 GB, free: 2.871 MB / 430.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.002144/0.4188, allocations: 0.944 MB / 0.5164 GB, free: 1.918 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006754/0.4195, allocations: 226.5 kB / 0.5166 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005068/0.4245, allocations: 2.542 MB / 0.5191 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.4245, allocations: 12 kB / 0.5191 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.582e-05/0.4246, allocations: 8 kB / 0.5191 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.183e-05/0.4246, allocations: 7.969 kB / 0.5191 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01193/0.4365, allocations: 5.757 MB / 0.5247 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/0.4365, allocations: 15.91 kB / 0.5247 GB, free: 9.156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008575/0.4374, allocations: 195.7 kB / 0.5249 GB, free: 8.965 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002/0.4394, allocations: 0.7303 MB / 0.5256 GB, free: 8.203 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.4395, allocations: 39.98 kB / 0.5257 GB, free: 8.164 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01771/0.4572, allocations: 17.14 MB / 0.5424 GB, free: 5.875 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.4572, allocations: 7.938 kB / 0.5424 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006659/0.4639, allocations: 3.717 MB / 0.546 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/0.4653, allocations: 414.4 kB / 0.5464 GB, free: 1.645 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005063/0.4658, allocations: 35.98 kB / 0.5465 GB, free: 1.609 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.4671, allocations: 107.9 kB / 0.5466 GB, free: 1.504 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000365/0.4674, allocations: 152.9 kB / 0.5467 GB, free: 1.355 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.4676, allocations: 44 kB / 0.5468 GB, free: 1.312 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2072/0.6747, allocations: 1.398 MB / 0.5481 GB, free: 117.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6747, allocations: 0.6562 kB / 0.5481 GB, free: 117.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003725/0.6785, allocations: 0.6563 MB / 0.5488 GB, free: 117.9 MB / 462.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.006399/0.6849, allocations: 4.366 MB / 0.553 GB, free: 117 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004026/0.6889, allocations: 3.373 MB / 0.5563 GB, free: 115.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.6889, allocations: 3.938 kB / 0.5563 GB, free: 115.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002145/0.691, allocations: 2.137 MB / 0.5584 GB, free: 113.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003337/0.6944, allocations: 0.6791 MB / 0.5591 GB, free: 113.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03187/0.7262, allocations: 22.46 MB / 0.581 GB, free: 97 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002039/0.7283, allocations: 2.293 MB / 0.5832 GB, free: 94.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001391/0.7297, allocations: 493.8 kB / 0.5837 GB, free: 94.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/0.7308, allocations: 1.089 MB / 0.5848 GB, free: 93.11 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7308, allocations: 0 / 0.5848 GB, free: 93.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/0.8551, allocations: 61.64 MB / 0.645 GB, free: 32.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.83/16.69, allocations: 10.67 kB / 0.645 GB, free: 32.13 MB / 462.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 19.273725523147732]