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.001665/0.001665, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001857/0.001857, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2544, allocations: 50.54 MB / 408.8 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01275/0.2672, allocations: 11.84 MB / 420.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007252/0.2745, allocations: 3.986 MB / 424.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.2763, allocations: 63.75 kB / 424.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002566/0.2789, allocations: 0.8813 MB / 425.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003268/0.2822, allocations: 1.033 MB / 426.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001856/0.2841, allocations: 0.5343 MB / 427.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004341/0.2884, allocations: 3.467 MB / 430.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00308/0.2915, allocations: 2.701 MB / 433.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.2937, allocations: 1.553 MB / 434.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002875/0.2966, allocations: 1.946 MB / 436.8 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008289/0.2974, allocations: 408 kB / 437.2 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.2989, allocations: 0.6246 MB / 437.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.3002, allocations: 1.149 MB / 438.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002432/0.3026, allocations: 1.847 MB / 440.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006009/0.3086, allocations: 5.399 MB / 446.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.3087, allocations: 0 / 446.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3087, allocations: 11.88 kB / 446.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001524/0.3089, allocations: 0 / 446.2 MB, free: 12.02 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.008023/0.3169, allocations: 3.817 MB / 450 MB, free: 8.133 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.3169, allocations: 8.031 kB / 450 MB, free: 8.125 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000589/0.3175, allocations: 384.1 kB / 450.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0018/0.3193, allocations: 494.5 kB / 450.9 MB, free: 7.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004147/0.3235, allocations: 1.994 MB / 452.9 MB, free: 5.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.3237, allocations: 197.4 kB / 453.1 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006578/0.3244, allocations: 268 kB / 453.3 MB, free: 4.754 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006642/0.331, allocations: 3.533 MB / 456.9 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.858e-05/0.3312, allocations: 4 kB / 456.9 MB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003306/0.3315, allocations: 108 kB / 457 MB, free: 1.031 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.3316, allocations: 121.2 kB / 457.1 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005963/0.3376, allocations: 2.972 MB / 460.1 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/0.3576, allocations: 11 MB / 471.1 MB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003176/0.3608, allocations: 2.269 MB / 473.3 MB, free: 164 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00214/0.363, allocations: 1.176 MB / 474.5 MB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003617/0.3634, allocations: 207.4 kB / 474.7 MB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/0.3635, allocations: 47.88 kB / 474.8 MB, free: 14.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 4.068e-06/0.3635, allocations: 3.938 kB / 474.8 MB, free: 14.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.01756/0.3811, allocations: 7.567 MB / 482.3 MB, free: 6.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.3811, allocations: 68.72 kB / 482.4 MB, free: 6.906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0038/0.3849, allocations: 1.988 MB / 484.4 MB, free: 4.875 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002647/0.3852, allocations: 53.7 kB / 484.4 MB, free: 4.816 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.3863, allocations: 1.354 MB / 485.8 MB, free: 3.449 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006496/0.387, allocations: 0.5267 MB / 486.3 MB, free: 2.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007881/0.3878, allocations: 327.4 kB / 486.6 MB, free: 2.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3879, allocations: 301.1 kB / 486.9 MB, free: 2.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/0.3895, allocations: 0.894 MB / 487.8 MB, free: 1.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001897/0.3914, allocations: 1.371 MB / 489.2 MB, free: 15.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003586/0.395, allocations: 2.381 MB / 491.6 MB, free: 13.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/0.395, allocations: 4 kB / 491.6 MB, free: 13.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005521/0.4005, allocations: 3.002 MB / 494.6 MB, free: 10.19 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/0.4006, allocations: 12 kB / 494.6 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.372e-05/0.4007, allocations: 16 kB / 494.6 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.4018, allocations: 460.8 kB / 495.1 MB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.4036, allocations: 427.3 kB / 495.5 MB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006894/0.4105, allocations: 6.096 MB / 0.4898 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/0.4124, allocations: 123.8 kB / 0.4899 GB, free: 2.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/0.4128, allocations: 75.98 kB / 0.49 GB, free: 2.719 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.001756/0.4146, allocations: 0.8563 MB / 0.4908 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007261/0.4153, allocations: 222.5 kB / 0.4911 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005064/0.4204, allocations: 2.595 MB / 0.4936 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.507e-05/0.4205, allocations: 23.98 kB / 0.4936 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.338e-05/0.4205, allocations: 8 kB / 0.4936 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.927e-05/0.4205, allocations: 3.984 kB / 0.4936 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01152/0.432, allocations: 5.618 MB / 0.4991 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/0.4321, allocations: 4 kB / 0.4991 GB, free: 9.203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.4335, allocations: 284 kB / 0.4994 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.4349, allocations: 0.4929 MB / 0.4999 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/0.4351, allocations: 39.98 kB / 0.4999 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008106/0.4433, allocations: 7.682 MB / 0.5074 GB, free: 296 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/0.4433, allocations: 11.97 kB / 0.5074 GB, free: 284 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006911/0.4502, allocations: 3.848 MB / 0.5112 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.4516, allocations: 487.5 kB / 0.5116 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006229/0.4523, allocations: 39.98 kB / 0.5117 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/0.4538, allocations: 99.89 kB / 0.5118 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/0.4543, allocations: 117 kB / 0.5119 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/0.4545, allocations: 39.98 kB / 0.5119 GB, free: 11.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002744/0.4572, allocations: 1.368 MB / 0.5133 GB, free: 10.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4573, allocations: 4 kB / 0.5133 GB, free: 10.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002776/0.46, allocations: 0.5858 MB / 0.5138 GB, free: 9.57 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.007635/0.4677, allocations: 4.524 MB / 0.5183 GB, free: 4.949 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00483/0.4726, allocations: 2.618 MB / 0.5208 GB, free: 2.281 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.4726, allocations: 0 / 0.5208 GB, free: 2.281 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002963/0.4756, allocations: 1.616 MB / 0.5224 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003413/0.479, allocations: 0.4937 MB / 0.5229 GB, free: 140 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.241/0.72, allocations: 21.8 MB / 0.5442 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/0.7216, allocations: 2.142 MB / 0.5463 GB, free: 123.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001385/0.723, allocations: 478.1 kB / 0.5467 GB, free: 123.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/0.7243, allocations: 1.071 MB / 0.5478 GB, free: 122.2 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/0.7243, allocations: 0 / 0.5478 GB, free: 122.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08884/0.8132, allocations: 53.38 MB / 0.5999 GB, free: 73.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/14.98, allocations: 7.984 kB / 0.5999 GB, free: 73.56 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.0.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