Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001515/0.001515, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00164/0.00164, allocations: 212 kB / 23.73 MB, free: 4.387 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.439/1.439, allocations: 230.6 MB / 257.5 MB, free: 7.805 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_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2624, allocations: 53.38 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01403/0.2765, allocations: 9.646 MB / 440.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007273/0.2837, allocations: 3.474 MB / 444.2 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001441/0.2852, allocations: 91.38 kB / 444.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.2874, allocations: 0.7995 MB / 445.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002922/0.2903, allocations: 0.9165 MB / 446 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.2915, allocations: 475.2 kB / 446.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00377/0.2952, allocations: 2.95 MB / 449.4 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002452/0.2977, allocations: 1.513 MB / 451 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002248/0.2999, allocations: 1.413 MB / 452.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002722/0.3027, allocations: 1.697 MB / 454.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006264/0.3033, allocations: 372 kB / 454.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.3043, allocations: 475.8 kB / 454.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001157/0.3055, allocations: 1.091 MB / 456 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001745/0.3072, allocations: 1.342 MB / 457.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005651/0.3129, allocations: 4.947 MB / 462.3 MB, free: 7.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3129, allocations: 0 / 462.3 MB, free: 7.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3129, allocations: 0 / 462.3 MB, free: 7.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.549e-05/0.3129, allocations: 4 kB / 462.3 MB, free: 7.297 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007174/0.3201, allocations: 3.398 MB / 465.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.3202, allocations: 8.031 kB / 465.7 MB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005433/0.3207, allocations: 363 kB / 466 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001007/0.3217, allocations: 362.8 kB / 466.4 MB, free: 3.121 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003933/0.3256, allocations: 1.756 MB / 468.2 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001924/0.3258, allocations: 197.1 kB / 468.3 MB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004744/0.3263, allocations: 251.9 kB / 468.6 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006164/0.3325, allocations: 3.362 MB / 472 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-05/0.3325, allocations: 7.891 kB / 472 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002461/0.3328, allocations: 104 kB / 472.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/0.3329, allocations: 120.9 kB / 472.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005259/0.3382, allocations: 2.744 MB / 474.9 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01848/0.3567, allocations: 9.425 MB / 484.4 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00196/0.3586, allocations: 1.071 MB / 485.4 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.3599, allocations: 0.7056 MB / 486.1 MB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002374/0.3602, allocations: 54.05 kB / 486.2 MB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.902e-05/0.3602, allocations: 47.55 kB / 486.2 MB, free: 14.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.747e-06/0.3602, allocations: 0 / 486.2 MB, free: 14.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01619/0.3764, allocations: 6.636 MB / 492.9 MB, free: 8.078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.3765, allocations: 64.41 kB / 492.9 MB, free: 8.004 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002991/0.3795, allocations: 1.825 MB / 494.8 MB, free: 6.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001537/0.3796, allocations: 49.7 kB / 494.8 MB, free: 6.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001151/0.3808, allocations: 1.306 MB / 496.1 MB, free: 4.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004802/0.3812, allocations: 452.2 kB / 496.5 MB, free: 4.359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005108/0.3818, allocations: 295.4 kB / 496.8 MB, free: 4.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3819, allocations: 309.1 kB / 497.1 MB, free: 3.758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.3832, allocations: 0.7769 MB / 497.9 MB, free: 2.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.385, allocations: 1.288 MB / 499.2 MB, free: 1.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003341/0.3884, allocations: 2.21 MB / 0.4897 GB, free: 15.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.625e-05/0.3884, allocations: 8 kB / 0.4897 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004565/0.3929, allocations: 2.475 MB / 0.4921 GB, free: 12.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.393, allocations: 15.98 kB / 0.4921 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.049e-05/0.393, allocations: 24 kB / 0.4921 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006877/0.3937, allocations: 239.3 kB / 0.4924 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/0.3953, allocations: 419.3 kB / 0.4928 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003061/0.3983, allocations: 3.023 MB / 0.4957 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.3999, allocations: 139.9 kB / 0.4958 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.4001, allocations: 71.94 kB / 0.4959 GB, free: 8.367 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0015/0.4016, allocations: 0.8211 MB / 0.4967 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004413/0.402, allocations: 194.7 kB / 0.4969 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003924/0.4059, allocations: 2.035 MB / 0.4989 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.406, allocations: 12 kB / 0.4989 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.406, allocations: 0 / 0.4989 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.896e-05/0.406, allocations: 7.969 kB / 0.4989 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009941/0.4159, allocations: 4.448 MB / 0.5032 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.4159, allocations: 0 / 0.5032 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.4171, allocations: 263.6 kB / 0.5035 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000584/0.4177, allocations: 203.2 kB / 0.5037 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-05/0.4178, allocations: 24 kB / 0.5037 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003/0.4208, allocations: 3.008 MB / 0.5066 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.4208, allocations: 8.25 kB / 0.5067 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005156/0.4259, allocations: 3.132 MB / 0.5097 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.4271, allocations: 358.6 kB / 0.5101 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/0.4274, allocations: 23.94 kB / 0.5101 GB, free: 9.418 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009678/0.4283, allocations: 99.8 kB / 0.5102 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.4285, allocations: 88.78 kB / 0.5103 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-05/0.4286, allocations: 36.06 kB / 0.5103 GB, free: 9.199 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002158/0.4307, allocations: 1.224 MB / 0.5115 GB, free: 7.984 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4307, allocations: 0 / 0.5115 GB, free: 7.984 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001812/0.4326, allocations: 491.9 kB / 0.512 GB, free: 7.504 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,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.005953/0.4385, allocations: 3.792 MB / 0.5157 GB, free: 3.645 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00417/0.4427, allocations: 2.108 MB / 0.5177 GB, free: 1.504 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.4427, allocations: 5.938 kB / 0.5177 GB, free: 1.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002143/0.4448, allocations: 1.118 MB / 0.5188 GB, free: 360 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/0.4474, allocations: 0.5017 MB / 0.5193 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2181/0.6655, allocations: 18.78 MB / 0.5377 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001644/0.6671, allocations: 1.443 MB / 0.5391 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001409/0.6685, allocations: 0.4931 MB / 0.5395 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/0.6696, allocations: 1.018 MB / 0.5405 GB, free: 100.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6696, allocations: 3.625 kB / 0.5405 GB, free: 100.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08203/0.7517, allocations: 49.3 MB / 0.5887 GB, free: 56.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/14, allocations: 7.078 kB / 0.5887 GB, free: 56.89 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.532611293252558]