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.0007845/0.0007845, 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.0008316/0.0008316, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8679/0.8679, allocations: 177.1 MB / 204.2 MB, free: 5.727 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_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 1.673e-06/1.673e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.664e-05/1.831e-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_CurrentSource): time 0.008227/0.008245, allocations: 9.676 MB / 334.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005266/0.01351, allocations: 3.489 MB / 337.7 MB, free: 2.703 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009027/0.01441, allocations: 83.44 kB / 337.8 MB, free: 2.621 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001312/0.01573, allocations: 0.8149 MB / 338.6 MB, free: 1.801 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00161/0.01734, allocations: 0.9429 MB / 339.6 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005962/0.01793, allocations: 475.1 kB / 340.1 MB, free: 392 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001976/0.01991, allocations: 3.035 MB / 343.1 MB, free: 13.33 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.02122, allocations: 1.509 MB / 344.6 MB, free: 11.76 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00195/0.02317, allocations: 2.07 MB / 346.7 MB, free: 9.688 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001507/0.02468, allocations: 1.52 MB / 348.2 MB, free: 8.164 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003362/0.02502, allocations: 372 kB / 348.5 MB, free: 7.801 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005731/0.02559, allocations: 479.7 kB / 349 MB, free: 7.332 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006672/0.02626, allocations: 1.118 MB / 350.1 MB, free: 6.211 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008925/0.02715, allocations: 1.142 MB / 351.3 MB, free: 5.066 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003399/0.03055, allocations: 4.95 MB / 356.2 MB, free: 104 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.03055, allocations: 4 kB / 356.2 MB, free: 100 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.03055, allocations: 0 / 356.2 MB, free: 100 kB / 314.7 MB Notification: Performance of Transformations before backend: time 6.728e-05/0.03062, allocations: 0 / 356.2 MB, free: 100 kB / 314.7 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.004739/0.03536, allocations: 3.37 MB / 359.6 MB, free: 12.67 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.03541, allocations: 8.031 kB / 359.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003183/0.03573, allocations: 367 kB / 360 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006201/0.03635, allocations: 366.8 kB / 360.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.03849, allocations: 1.751 MB / 362.1 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-05/0.03859, allocations: 189.4 kB / 362.3 MB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002423/0.03883, allocations: 256.3 kB / 362.5 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003673/0.0425, allocations: 3.355 MB / 365.9 MB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.185e-05/0.04256, allocations: 15.88 kB / 365.9 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/0.04271, allocations: 104 kB / 366 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.082e-05/0.0428, allocations: 128.9 kB / 366.1 MB, free: 6.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003082/0.04589, allocations: 2.74 MB / 368.9 MB, free: 3.254 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.05651, allocations: 9.432 MB / 378.3 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.05774, allocations: 1.063 MB / 379.3 MB, free: 8.395 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007794/0.05852, allocations: 0.7191 MB / 380.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001688/0.05869, allocations: 44.97 kB / 380.1 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.05872, allocations: 47.5 kB / 380.2 MB, free: 7.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 3.837e-06/0.05872, allocations: 0 / 380.2 MB, free: 7.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.009382/0.0681, allocations: 6.649 MB / 386.8 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.06814, allocations: 72.39 kB / 386.9 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.06996, allocations: 1.817 MB / 388.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.366e-05/0.07002, allocations: 45.7 kB / 388.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006006/0.07062, allocations: 1.302 MB / 390 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.07086, allocations: 444.2 kB / 390.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.07115, allocations: 299.4 kB / 390.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.719e-05/0.07122, allocations: 305.1 kB / 391.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009013/0.07212, allocations: 0.7769 MB / 391.8 MB, free: 11.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009712/0.07309, allocations: 1.3 MB / 393.1 MB, free: 10.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001884/0.07497, allocations: 2.206 MB / 395.3 MB, free: 7.848 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.07498, allocations: 8 kB / 395.4 MB, free: 7.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002733/0.07772, allocations: 2.479 MB / 397.8 MB, free: 5.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.07774, allocations: 12 kB / 397.8 MB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.07776, allocations: 16 kB / 397.9 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003946/0.07816, allocations: 243.2 kB / 398.1 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009377/0.0791, allocations: 419.5 kB / 398.5 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00174/0.08084, allocations: 3.023 MB / 401.5 MB, free: 1.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008847/0.08172, allocations: 131.8 kB / 401.7 MB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.467e-05/0.0818, allocations: 68 kB / 401.7 MB, free: 1.199 MB / 362.7 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.00104/0.08285, allocations: 0.8298 MB / 402.6 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002658/0.08311, allocations: 198.8 kB / 402.7 MB, free: 168 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002185/0.0853, allocations: 2.031 MB / 404.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.0853, allocations: 12 kB / 404.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.08531, allocations: 4.141 kB / 404.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.08532, allocations: 11.95 kB / 404.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00545/0.09077, allocations: 4.44 MB / 409.2 MB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.09078, allocations: 4 kB / 409.3 MB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005953/0.09137, allocations: 259.6 kB / 409.5 MB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003258/0.0917, allocations: 211.5 kB / 409.7 MB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-05/0.09176, allocations: 24 kB / 409.7 MB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001793/0.09355, allocations: 3 MB / 412.7 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.09356, allocations: 11.88 kB / 412.7 MB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003085/0.09664, allocations: 3.132 MB / 415.9 MB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006594/0.0973, allocations: 362.5 kB / 416.2 MB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.09744, allocations: 24.12 kB / 416.3 MB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005241/0.09797, allocations: 95.88 kB / 416.4 MB, free: 2.148 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.09809, allocations: 88.77 kB / 416.4 MB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.826e-05/0.09814, allocations: 32 kB / 416.5 MB, free: 2.031 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001368/0.09951, allocations: 1.228 MB / 417.7 MB, free: 0.8125 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.09951, allocations: 7.875 kB / 417.7 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001136/0.1006, allocations: 484 kB / 418.2 MB, free: 340 kB / 378.7 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.003574/0.1042, allocations: 3.78 MB / 422 MB, free: 12.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002469/0.1067, allocations: 2.11 MB / 424.1 MB, free: 10.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1067, allocations: 0.5 kB / 424.1 MB, free: 10.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.1078, allocations: 1.125 MB / 425.2 MB, free: 9.184 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.1093, allocations: 0.4934 MB / 425.7 MB, free: 8.703 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/0.1314, allocations: 18.82 MB / 444.5 MB, free: 5.129 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/0.1325, allocations: 1.441 MB / 445.9 MB, free: 3.652 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001093/0.1336, allocations: 0.4999 MB / 446.4 MB, free: 3.148 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009492/0.1346, allocations: 1.016 MB / 447.5 MB, free: 2.129 MB / 410.7 MB Notification: Performance of SimCode: time 1.693e-06/0.1346, allocations: 0 / 447.5 MB, free: 2.129 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1841/0.3187, allocations: 49.26 MB / 496.7 MB, free: 76.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.218/8.537, allocations: 4 kB / 496.7 MB, free: 76.3 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.936171658337116]