Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001425/0.001425, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003191/0.003191, allocations: 59.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3411, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01609/0.3572, allocations: 11.84 MB / 420.6 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009164/0.3664, allocations: 3.99 MB / 424.6 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002733/0.3692, allocations: 63.75 kB / 424.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003382/0.3727, allocations: 0.8646 MB / 425.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004386/0.3771, allocations: 0.9822 MB / 426.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002162/0.3793, allocations: 0.5305 MB / 427 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005919/0.3852, allocations: 3.463 MB / 430.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004987/0.3902, allocations: 2.716 MB / 433.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003073/0.3933, allocations: 1.538 MB / 434.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003673/0.397, allocations: 1.946 MB / 436.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001275/0.3983, allocations: 412 kB / 437.1 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.4004, allocations: 0.6246 MB / 437.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001927/0.4023, allocations: 1.153 MB / 438.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003413/0.4058, allocations: 1.847 MB / 440.7 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007438/0.4132, allocations: 5.399 MB / 446.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.4133, allocations: 0 / 446.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4133, allocations: 0 / 446.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001969/0.4135, allocations: 0 / 446.1 MB, free: 11.97 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.01085/0.4243, allocations: 3.817 MB / 449.9 MB, free: 8.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.4244, allocations: 8.031 kB / 449.9 MB, free: 8.078 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000716/0.4251, allocations: 392.1 kB / 450.3 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001985/0.4271, allocations: 490.5 kB / 450.8 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00449/0.4316, allocations: 1.994 MB / 452.8 MB, free: 5.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/0.4319, allocations: 197.4 kB / 453 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005465/0.4324, allocations: 271.9 kB / 453.3 MB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006777/0.4392, allocations: 3.521 MB / 456.8 MB, free: 1.098 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.296e-05/0.4393, allocations: 4 kB / 456.8 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000272/0.4396, allocations: 108 kB / 456.9 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001545/0.4397, allocations: 129.2 kB / 457 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005735/0.4455, allocations: 2.972 MB / 460 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02023/0.4657, allocations: 11.01 MB / 471 MB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003165/0.4689, allocations: 2.277 MB / 473.3 MB, free: 96 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002233/0.4712, allocations: 1.168 MB / 474.4 MB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003368/0.4715, allocations: 211.4 kB / 474.7 MB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.4716, allocations: 47.88 kB / 474.7 MB, free: 14.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 3.617e-06/0.4716, allocations: 0 / 474.7 MB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.01746/0.4891, allocations: 7.56 MB / 482.3 MB, free: 6.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.4892, allocations: 68.66 kB / 482.3 MB, free: 6.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003438/0.4926, allocations: 1.996 MB / 484.3 MB, free: 4.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.4928, allocations: 49.7 kB / 484.4 MB, free: 4.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/0.494, allocations: 1.347 MB / 485.7 MB, free: 3.398 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006268/0.4947, allocations: 0.5307 MB / 486.2 MB, free: 2.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005867/0.4952, allocations: 327.4 kB / 486.6 MB, free: 2.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4954, allocations: 305.1 kB / 486.9 MB, free: 2.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/0.4971, allocations: 0.8862 MB / 487.8 MB, free: 1.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/0.4991, allocations: 1.368 MB / 489.1 MB, free: 15.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.5028, allocations: 2.385 MB / 491.5 MB, free: 13.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/0.5028, allocations: 8 kB / 491.5 MB, free: 13.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005918/0.5087, allocations: 2.999 MB / 494.5 MB, free: 10.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.5088, allocations: 8 kB / 494.5 MB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.603e-05/0.5088, allocations: 16 kB / 494.5 MB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/0.5101, allocations: 460.8 kB / 495 MB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/0.5118, allocations: 431.3 kB / 495.4 MB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007825/0.5197, allocations: 6.106 MB / 0.4898 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.5215, allocations: 119.8 kB / 0.4899 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002311/0.5217, allocations: 72 kB / 0.4899 GB, free: 2.668 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.001759/0.5235, allocations: 0.864 MB / 0.4908 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005383/0.5241, allocations: 226.5 kB / 0.491 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005112/0.5292, allocations: 2.584 MB / 0.4935 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.723e-05/0.5292, allocations: 20 kB / 0.4935 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.5293, allocations: 7.938 kB / 0.4935 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.5293, allocations: 7.969 kB / 0.4936 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/0.5402, allocations: 5.619 MB / 0.499 GB, free: 9.148 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.5403, allocations: 4 kB / 0.499 GB, free: 9.145 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/0.5416, allocations: 275.6 kB / 0.4993 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.543, allocations: 0.4904 MB / 0.4998 GB, free: 8.375 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/0.5431, allocations: 43.92 kB / 0.4998 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009289/0.5524, allocations: 7.693 MB / 0.5073 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/0.5525, allocations: 7.938 kB / 0.5074 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007367/0.5599, allocations: 3.848 MB / 0.5111 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001475/0.5614, allocations: 487.5 kB / 0.5116 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003362/0.5617, allocations: 35.98 kB / 0.5116 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.563, allocations: 95.89 kB / 0.5117 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/0.5634, allocations: 125 kB / 0.5118 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.5635, allocations: 43.98 kB / 0.5119 GB, free: 11.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00242/0.5659, allocations: 1.36 MB / 0.5132 GB, free: 10.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5659, allocations: 3.938 kB / 0.5132 GB, free: 10.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002424/0.5684, allocations: 0.5976 MB / 0.5138 GB, free: 9.5 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.007645/0.576, allocations: 4.523 MB / 0.5182 GB, free: 4.879 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00517/0.5812, allocations: 2.604 MB / 0.5207 GB, free: 2.227 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.5813, allocations: 448 / 0.5207 GB, free: 2.227 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0031/0.5844, allocations: 1.615 MB / 0.5223 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002831/0.5872, allocations: 0.4941 MB / 0.5228 GB, free: 80 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2784/0.8656, allocations: 21.81 MB / 0.5441 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/0.8672, allocations: 2.14 MB / 0.5462 GB, free: 123 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001361/0.8686, allocations: 469.9 kB / 0.5466 GB, free: 123 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.8697, allocations: 1.062 MB / 0.5477 GB, free: 122.1 MB / 462.1 MB Notification: Performance of SimCode: time 2.455e-06/0.8697, allocations: 0 / 0.5477 GB, free: 122.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1234/0.9931, allocations: 53.39 MB / 0.5998 GB, free: 73.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.06/16.06, allocations: 0 / 0.5998 GB, free: 73.28 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches