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.001243/0.001243, 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.001121/0.001121, allocations: 203.9 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.286/1.286, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2361, allocations: 50.53 MB / 408.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.0124/0.2486, allocations: 11.85 MB / 420.6 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006932/0.2555, allocations: 3.978 MB / 424.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002606/0.2582, allocations: 63.75 kB / 424.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002422/0.2607, allocations: 0.8881 MB / 425.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002774/0.2635, allocations: 1.029 MB / 426.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.2646, allocations: 0.5226 MB / 427.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003699/0.2683, allocations: 3.467 MB / 430.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00291/0.2713, allocations: 2.712 MB / 433.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002292/0.2736, allocations: 1.557 MB / 434.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002787/0.2764, allocations: 1.95 MB / 436.8 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007644/0.2772, allocations: 408 kB / 437.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.2785, allocations: 0.6246 MB / 437.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.2796, allocations: 1.145 MB / 438.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00211/0.2817, allocations: 1.851 MB / 440.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005532/0.2872, allocations: 5.399 MB / 446.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2873, allocations: 7.938 kB / 446.2 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2873, allocations: 0 / 446.2 MB, free: 12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001001/0.2874, allocations: 0 / 446.2 MB, free: 12 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.007579/0.295, allocations: 3.817 MB / 450 MB, free: 8.113 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.295, allocations: 8.031 kB / 450 MB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004863/0.2955, allocations: 384.1 kB / 450.4 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.2972, allocations: 490.5 kB / 450.9 MB, free: 7.242 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003658/0.3009, allocations: 1.998 MB / 452.9 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.301, allocations: 197.4 kB / 453.1 MB, free: 4.996 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004378/0.3015, allocations: 271.9 kB / 453.3 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005771/0.3073, allocations: 3.521 MB / 456.9 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.596e-05/0.3074, allocations: 4 kB / 456.9 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002434/0.3076, allocations: 112 kB / 457 MB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.3078, allocations: 121.3 kB / 457.1 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00509/0.3128, allocations: 2.968 MB / 460.1 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01729/0.3302, allocations: 11.01 MB / 471.1 MB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.3329, allocations: 2.277 MB / 473.3 MB, free: 140 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/0.3349, allocations: 1.176 MB / 474.5 MB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003087/0.3352, allocations: 211.5 kB / 474.7 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.3353, allocations: 43.88 kB / 474.8 MB, free: 14.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 4.017e-06/0.3353, allocations: 0 / 474.8 MB, free: 14.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.01593/0.3512, allocations: 7.568 MB / 482.3 MB, free: 6.961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.3513, allocations: 64.72 kB / 482.4 MB, free: 6.887 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002818/0.3541, allocations: 1.992 MB / 484.4 MB, free: 4.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.3543, allocations: 49.7 kB / 484.4 MB, free: 4.797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008966/0.3552, allocations: 1.347 MB / 485.8 MB, free: 3.438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004106/0.3556, allocations: 0.5346 MB / 486.3 MB, free: 2.898 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004969/0.3561, allocations: 327.5 kB / 486.6 MB, free: 2.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.744e-05/0.3562, allocations: 305.1 kB / 486.9 MB, free: 2.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.3576, allocations: 0.8862 MB / 487.8 MB, free: 1.383 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/0.3593, allocations: 1.368 MB / 489.2 MB, free: 15.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003216/0.3626, allocations: 2.385 MB / 491.6 MB, free: 13.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.747e-06/0.3626, allocations: 4 kB / 491.6 MB, free: 13.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004967/0.3676, allocations: 2.998 MB / 494.6 MB, free: 10.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3676, allocations: 12 kB / 494.6 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.3676, allocations: 12 kB / 494.6 MB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.3687, allocations: 468.8 kB / 495.1 MB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/0.3704, allocations: 431.3 kB / 495.5 MB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006337/0.3767, allocations: 6.095 MB / 0.4898 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/0.3786, allocations: 119.8 kB / 0.4899 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/0.3787, allocations: 79.98 kB / 0.49 GB, free: 2.703 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.001437/0.3802, allocations: 0.868 MB / 0.4909 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000476/0.3807, allocations: 226.5 kB / 0.4911 GB, free: 1.602 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004283/0.385, allocations: 2.588 MB / 0.4936 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.57e-05/0.385, allocations: 19.98 kB / 0.4936 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.385, allocations: 4 kB / 0.4936 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.3851, allocations: 7.922 kB / 0.4936 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009428/0.3945, allocations: 5.618 MB / 0.4991 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.3945, allocations: 4 kB / 0.4991 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.3957, allocations: 279.6 kB / 0.4994 GB, free: 8.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001295/0.397, allocations: 0.501 MB / 0.4999 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.3972, allocations: 35.98 kB / 0.4999 GB, free: 8.367 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007728/0.4049, allocations: 7.687 MB / 0.5074 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.4049, allocations: 7.938 kB / 0.5074 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006128/0.4111, allocations: 3.844 MB / 0.5112 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001336/0.4124, allocations: 491.5 kB / 0.5117 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003381/0.4128, allocations: 35.98 kB / 0.5117 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.414, allocations: 95.89 kB / 0.5118 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002745/0.4143, allocations: 121 kB / 0.5119 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-05/0.4144, allocations: 43.98 kB / 0.5119 GB, free: 11.53 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001956/0.4164, allocations: 1.364 MB / 0.5133 GB, free: 10.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.4164, allocations: 4 kB / 0.5133 GB, free: 10.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001998/0.4184, allocations: 0.5936 MB / 0.5139 GB, free: 9.543 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.006358/0.4248, allocations: 4.523 MB / 0.5183 GB, free: 4.922 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004334/0.4291, allocations: 2.616 MB / 0.5208 GB, free: 2.258 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.4292, allocations: 4 kB / 0.5208 GB, free: 2.254 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002625/0.4318, allocations: 1.607 MB / 0.5224 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/0.4343, allocations: 494 kB / 0.5229 GB, free: 128 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2178/0.652, allocations: 21.81 MB / 0.5442 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/0.6535, allocations: 2.14 MB / 0.5463 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001327/0.6549, allocations: 471.4 kB / 0.5467 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/0.656, allocations: 1.061 MB / 0.5477 GB, free: 122 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.656, allocations: 3.625 kB / 0.5477 GB, free: 122 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08335/0.7394, allocations: 53.4 MB / 0.5999 GB, free: 73.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.54, allocations: 7.125 kB / 0.5999 GB, free: 73.24 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