Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.001693/0.001693, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001787/0.001787, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.376/1.376, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 47.86 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2738, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.0148/0.2886, allocations: 11.92 MB / 435.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008299/0.2969, allocations: 3.947 MB / 439.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.2989, allocations: 83.44 kB / 439.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.3011, allocations: 0.8817 MB / 440.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002912/0.304, allocations: 1.033 MB / 441.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.3052, allocations: 0.5382 MB / 441.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004189/0.3094, allocations: 3.44 MB / 445.3 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002196/0.3116, allocations: 1.537 MB / 446.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002227/0.3139, allocations: 1.581 MB / 448.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002731/0.3166, allocations: 1.989 MB / 450.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005415/0.3171, allocations: 408 kB / 450.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001281/0.3184, allocations: 0.7181 MB / 451.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001186/0.3196, allocations: 1.161 MB / 452.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.3217, allocations: 1.843 MB / 454.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005998/0.3277, allocations: 5.391 MB / 459.9 MB, free: 9.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3278, allocations: 0 / 459.9 MB, free: 9.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3278, allocations: 3.938 kB / 459.9 MB, free: 9.945 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001039/0.3279, allocations: 0 / 459.9 MB, free: 9.945 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.008121/0.336, allocations: 3.73 MB / 463.6 MB, free: 6.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.336, allocations: 12.03 kB / 463.6 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.955e-05/0.3361, allocations: 69.58 kB / 463.7 MB, free: 6.082 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004753/0.3366, allocations: 380.1 kB / 464.1 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001337/0.3379, allocations: 454.6 kB / 464.5 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003403/0.3413, allocations: 1.905 MB / 466.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/0.3415, allocations: 201.4 kB / 466.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003867/0.3419, allocations: 267.9 kB / 466.9 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005724/0.3476, allocations: 3.521 MB / 470.4 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.056e-05/0.3477, allocations: 4 kB / 470.4 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002383/0.3479, allocations: 112 kB / 470.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/0.348, allocations: 125.2 kB / 470.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005143/0.3532, allocations: 2.972 MB / 473.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01766/0.3709, allocations: 10.82 MB / 484.4 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.3733, allocations: 1.514 MB / 486 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002008/0.3754, allocations: 1.09 MB / 487 MB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002332/0.3756, allocations: 53.27 kB / 487.1 MB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.035e-05/0.3756, allocations: 51.88 kB / 487.1 MB, free: 14.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 4.409e-06/0.3756, allocations: 0 / 487.1 MB, free: 14.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.01579/0.3914, allocations: 7.097 MB / 494.2 MB, free: 7.027 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.3915, allocations: 68.72 kB / 494.3 MB, free: 6.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002946/0.3944, allocations: 1.979 MB / 496.3 MB, free: 4.926 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.3945, allocations: 45.7 kB / 496.3 MB, free: 4.875 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/0.3956, allocations: 1.35 MB / 497.7 MB, free: 3.512 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004595/0.396, allocations: 0.5307 MB / 498.2 MB, free: 2.977 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005256/0.3966, allocations: 331.4 kB / 498.5 MB, free: 2.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3967, allocations: 305.1 kB / 498.8 MB, free: 2.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001444/0.3981, allocations: 0.8823 MB / 499.7 MB, free: 1.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.3999, allocations: 1.376 MB / 0.4893 GB, free: 15.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003456/0.4034, allocations: 2.377 MB / 0.4917 GB, free: 13.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.328e-06/0.4034, allocations: 4 kB / 0.4917 GB, free: 13.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005173/0.4086, allocations: 2.908 MB / 0.4945 GB, free: 10.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.4086, allocations: 12 kB / 0.4945 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.222e-05/0.4086, allocations: 23.97 kB / 0.4945 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/0.4098, allocations: 462.2 kB / 0.495 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.4114, allocations: 431.3 kB / 0.4954 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006935/0.4183, allocations: 5.892 MB / 0.5012 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.4201, allocations: 123.8 kB / 0.5013 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001853/0.4202, allocations: 72 kB / 0.5013 GB, free: 3.145 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00148/0.4217, allocations: 0.8524 MB / 0.5022 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004461/0.4222, allocations: 222.6 kB / 0.5024 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004414/0.4266, allocations: 2.508 MB / 0.5048 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.773e-05/0.4266, allocations: 19.98 kB / 0.5049 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.4266, allocations: 4 kB / 0.5049 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.4266, allocations: 3.984 kB / 0.5049 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009194/0.4358, allocations: 5.519 MB / 0.5102 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.4358, allocations: 4.031 kB / 0.5103 GB, free: 9.867 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.437, allocations: 283.6 kB / 0.5105 GB, free: 9.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.4383, allocations: 490.1 kB / 0.511 GB, free: 9.102 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.4384, allocations: 43.97 kB / 0.511 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008008/0.4465, allocations: 7.387 MB / 0.5182 GB, free: 1.328 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.4465, allocations: 7.984 kB / 0.5183 GB, free: 1.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006352/0.4528, allocations: 3.753 MB / 0.5219 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.4539, allocations: 414.4 kB / 0.5223 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003212/0.4543, allocations: 39.98 kB / 0.5224 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.4553, allocations: 95.89 kB / 0.5224 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/0.4556, allocations: 129 kB / 0.5226 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.4557, allocations: 43.92 kB / 0.5226 GB, free: 12.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001996/0.4577, allocations: 1.363 MB / 0.5239 GB, free: 11.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4577, allocations: 0 / 0.5239 GB, free: 11.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001807/0.4595, allocations: 0.5858 MB / 0.5245 GB, free: 10.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,100.0%), (1,6,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.006658/0.4662, allocations: 4.439 MB / 0.5288 GB, free: 6.301 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00448/0.4707, allocations: 2.431 MB / 0.5312 GB, free: 3.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.4707, allocations: 4 kB / 0.5312 GB, free: 3.836 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002686/0.4734, allocations: 1.548 MB / 0.5327 GB, free: 2.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002557/0.4759, allocations: 497.3 kB / 0.5332 GB, free: 1.766 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2331/0.709, allocations: 21.61 MB / 0.5543 GB, free: 99.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001685/0.7107, allocations: 2.144 MB / 0.5564 GB, free: 97.15 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001332/0.712, allocations: 469 kB / 0.5569 GB, free: 96.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/0.7132, allocations: 1.058 MB / 0.5579 GB, free: 95.68 MB / 446.1 MB Notification: Performance of SimCode: time 1.573e-06/0.7132, allocations: 0 / 0.5579 GB, free: 95.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1062/0.8194, allocations: 55.06 MB / 0.6117 GB, free: 41.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.75/16.57, allocations: 8 kB / 0.6117 GB, free: 41.09 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 655] Reference file matches [Calling sys.exit(0), Time elapsed: 28.601907774049323]