Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.001699/0.001699, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002101/0.002101, allocations: 208.3 kB / 23.73 MB, free: 4.523 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.384/1.384, 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_NoLoad,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 43.92 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2405, allocations: 53.37 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01049/0.251, allocations: 8.077 MB / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005937/0.257, allocations: 2.98 MB / 442.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.2581, allocations: 55.62 kB / 442.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001795/0.2599, allocations: 0.6523 MB / 442.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002335/0.2622, allocations: 0.773 MB / 443.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009459/0.2631, allocations: 327.4 kB / 443.9 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003234/0.2664, allocations: 2.131 MB / 446.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.2677, allocations: 0.8403 MB / 446.9 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001552/0.2692, allocations: 0.9654 MB / 447.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00194/0.2712, allocations: 1.168 MB / 449.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003496/0.2715, allocations: 232 kB / 449.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006542/0.2722, allocations: 331.8 kB / 449.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007593/0.2729, allocations: 0.6932 MB / 450.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.274, allocations: 0.8751 MB / 451.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003449/0.2775, allocations: 3.172 MB / 454.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2775, allocations: 0 / 454.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2775, allocations: 4 kB / 454.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.036e-05/0.2775, allocations: 0 / 454.3 MB, free: 15.28 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: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004288/0.2818, allocations: 2.282 MB / 456.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.2819, allocations: 15.97 kB / 456.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002969/0.2822, allocations: 228.4 kB / 456.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006764/0.2828, allocations: 251.5 kB / 457.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/0.2851, allocations: 1.164 MB / 458.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.2852, allocations: 115.2 kB / 458.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002741/0.2855, allocations: 152 kB / 458.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003398/0.2889, allocations: 2.112 MB / 460.6 MB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.902e-05/0.289, allocations: 11.95 kB / 460.7 MB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001566/0.2891, allocations: 63.98 kB / 460.7 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.091e-05/0.2892, allocations: 78.94 kB / 460.8 MB, free: 8.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002862/0.2921, allocations: 1.671 MB / 462.5 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009797/0.3019, allocations: 6.427 MB / 468.9 MB, free: 220 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008837/0.3027, allocations: 448.9 kB / 469.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004591/0.3032, allocations: 269.1 kB / 469.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001968/0.3034, allocations: 40.41 kB / 469.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.3034, allocations: 42.94 kB / 469.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.434e-06/0.3034, allocations: 0 / 469.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.007082/0.3105, allocations: 2.915 MB / 472.6 MB, free: 12.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.3106, allocations: 60.06 kB / 472.7 MB, free: 12.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/0.3129, allocations: 1.686 MB / 474.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.449e-05/0.313, allocations: 33.7 kB / 474.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008934/0.3139, allocations: 1.061 MB / 475.4 MB, free: 9.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002272/0.3141, allocations: 254 kB / 475.7 MB, free: 9.348 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004429/0.3145, allocations: 323.3 kB / 476 MB, free: 9.027 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3147, allocations: 301.1 kB / 476.3 MB, free: 8.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009311/0.3156, allocations: 0.5231 MB / 476.8 MB, free: 8.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.3173, allocations: 1.45 MB / 478.3 MB, free: 6.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002821/0.3202, allocations: 2.136 MB / 480.4 MB, free: 3.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.667e-05/0.3202, allocations: 12 kB / 480.4 MB, free: 3.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003808/0.324, allocations: 2.171 MB / 482.6 MB, free: 1.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.324, allocations: 16 kB / 482.6 MB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.799e-05/0.3241, allocations: 36 kB / 482.6 MB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005818/0.3246, allocations: 226.4 kB / 482.9 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.3258, allocations: 395.2 kB / 483.2 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001896/0.3277, allocations: 1.74 MB / 485 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.3291, allocations: 143.7 kB / 485.1 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.3292, allocations: 95.98 kB / 485.2 MB, free: 14.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009101/0.3301, allocations: 0.5906 MB / 485.8 MB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002877/0.3304, allocations: 163 kB / 486 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002084/0.3325, allocations: 1.085 MB / 487.1 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3325, allocations: 12 kB / 487.1 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3325, allocations: 0 / 487.1 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.3325, allocations: 3.984 kB / 487.1 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004936/0.3374, allocations: 2.571 MB / 489.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.3374, allocations: 4 kB / 489.6 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005421/0.338, allocations: 119.8 kB / 489.8 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004611/0.3384, allocations: 166.4 kB / 489.9 MB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.439e-05/0.3385, allocations: 15.98 kB / 489.9 MB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/0.3402, allocations: 1.678 MB / 491.6 MB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.3402, allocations: 7.969 kB / 491.6 MB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00279/0.343, allocations: 1.646 MB / 493.3 MB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006938/0.3437, allocations: 226.9 kB / 493.5 MB, free: 6.172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.3439, allocations: 15.98 kB / 493.5 MB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006668/0.3446, allocations: 55.94 kB / 493.6 MB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.3447, allocations: 48.34 kB / 493.6 MB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.3447, allocations: 19.94 kB / 493.6 MB, free: 6.035 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00164/0.3464, allocations: 1.087 MB / 494.7 MB, free: 4.953 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3464, allocations: 0 / 494.7 MB, free: 4.953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001372/0.3478, allocations: 363.9 kB / 495.1 MB, free: 4.598 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.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 (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.003221/0.351, allocations: 2.242 MB / 497.3 MB, free: 2.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002676/0.3536, allocations: 1.416 MB / 498.7 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3537, allocations: 4.812 kB / 498.7 MB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.3547, allocations: 0.5733 MB / 499.3 MB, free: 292 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.3564, allocations: 415 kB / 499.7 MB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02182/0.3782, allocations: 14.98 MB / 0.5026 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.3793, allocations: 0.8859 MB / 0.5035 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009718/0.3803, allocations: 354 kB / 0.5038 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009076/0.3812, allocations: 0.6399 MB / 0.5045 GB, free: 13.88 MB / 430.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3812, allocations: 0 / 0.5045 GB, free: 13.88 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2734/0.6546, allocations: 38.67 MB / 0.5422 GB, free: 106.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.75, allocations: 7.562 kB / 0.5422 GB, free: 106.2 MB / 446.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.32 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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: 15.362407890002942]