Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_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.001472/0.001472, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001436, allocations: 59.66 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1216, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL): time 0.01234/0.134, allocations: 9.421 MB / 367 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007513/0.1416, allocations: 3.046 MB / 370.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002102/0.1437, allocations: 47.81 kB / 370.1 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.1459, allocations: 0.6365 MB / 370.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002787/0.1487, allocations: 0.7727 MB / 371.5 MB, free: 28 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2158/0.3645, allocations: 355.8 kB / 371.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005014/0.3696, allocations: 2.658 MB / 374.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004505/0.3741, allocations: 2.151 MB / 376.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002981/0.3771, allocations: 1.192 MB / 377.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003237/0.3804, allocations: 1.5 MB / 379.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001362/0.3818, allocations: 307.3 kB / 379.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002323/0.3841, allocations: 410.4 kB / 380.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001942/0.3861, allocations: 0.8833 MB / 381 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003908/0.39, allocations: 1.415 MB / 382.4 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00628/0.3963, allocations: 4.058 MB / 386.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3963, allocations: 0 / 386.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3963, allocations: 1.094 kB / 386.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001672/0.3965, allocations: 0 / 386.4 MB, free: 7.023 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.009205/0.4057, allocations: 2.864 MB / 389.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.4058, allocations: 10.16 kB / 389.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005779/0.4064, allocations: 300.8 kB / 389.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/0.4077, allocations: 326.9 kB / 389.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002888/0.4106, allocations: 1.507 MB / 391.4 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.4107, allocations: 149.7 kB / 391.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003387/0.4111, allocations: 208.2 kB / 391.8 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005749/0.4168, allocations: 2.732 MB / 394.5 MB, free: 2.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.282e-05/0.4169, allocations: 10 kB / 394.5 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002139/0.4172, allocations: 81.66 kB / 394.6 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/0.4173, allocations: 96.7 kB / 394.7 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004723/0.4221, allocations: 2.33 MB / 397 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01409/0.4362, allocations: 8.409 MB / 405.4 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00205/0.4382, allocations: 1.79 MB / 407.2 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001798/0.4401, allocations: 1.056 MB / 408.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002577/0.4403, allocations: 122.1 kB / 408.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.4404, allocations: 47.56 kB / 408.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 3.757e-06/0.4404, allocations: 0 / 408.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.01344/0.4538, allocations: 6.21 MB / 414.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.4539, allocations: 64.41 kB / 414.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/0.4562, allocations: 1.529 MB / 416.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.4563, allocations: 45.7 kB / 416.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006765/0.457, allocations: 0.9972 MB / 417.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003067/0.4573, allocations: 412.2 kB / 417.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004064/0.4578, allocations: 255.4 kB / 417.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4579, allocations: 357.9 kB / 418.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.459, allocations: 0.73 MB / 419 MB, free: 11.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.4603, allocations: 1.062 MB / 420.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002454/0.4627, allocations: 1.87 MB / 421.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.4628, allocations: 11.88 kB / 422 MB, free: 8.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003876/0.4666, allocations: 2.353 MB / 424.3 MB, free: 5.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.4667, allocations: 12 kB / 424.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.4667, allocations: 8 kB / 424.3 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009785/0.4677, allocations: 415.5 kB / 424.7 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.4689, allocations: 327.5 kB / 425.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005086/0.474, allocations: 5.065 MB / 430.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.4755, allocations: 95.91 kB / 430.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.4756, allocations: 51.98 kB / 430.3 MB, free: 15.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001318/0.4769, allocations: 0.7159 MB / 431 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003502/0.4773, allocations: 162 kB / 431.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/0.4809, allocations: 2.141 MB / 433.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.4809, allocations: 12 kB / 433.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4809, allocations: 4 kB / 433.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.885e-05/0.4809, allocations: 7.969 kB / 433.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007632/0.4886, allocations: 4.578 MB / 437.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4886, allocations: 4 kB / 437.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009485/0.4896, allocations: 215.7 kB / 438.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001205/0.4908, allocations: 486.9 kB / 438.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.811e-05/0.4909, allocations: 31.92 kB / 438.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006221/0.4971, allocations: 6.684 MB / 445.3 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4971, allocations: 4.031 kB / 445.3 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004899/0.5021, allocations: 3.18 MB / 448.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009791/0.5031, allocations: 399 kB / 448.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.5033, allocations: 31.98 kB / 448.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008447/0.5042, allocations: 79.86 kB / 449 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002983/0.5045, allocations: 104.8 kB / 449.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.189e-05/0.5046, allocations: 35.98 kB / 449.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001924/0.5065, allocations: 1.06 MB / 450.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5065, allocations: 4 kB / 450.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00244/0.509, allocations: 464 kB / 450.6 MB, free: 10.69 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,12,100.0%), (1,1,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.005341/0.5143, allocations: 3.81 MB / 454.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004903/0.5192, allocations: 2.825 MB / 457.3 MB, free: 3.926 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.5193, allocations: 0 / 457.3 MB, free: 3.926 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002143/0.5214, allocations: 1.485 MB / 458.7 MB, free: 2.379 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/0.5238, allocations: 451.6 kB / 459.2 MB, free: 1.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02736/0.5512, allocations: 19.09 MB / 478.3 MB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/0.5527, allocations: 1.819 MB / 480.1 MB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001242/0.554, allocations: 405.5 kB / 480.5 MB, free: 11.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009928/0.555, allocations: 0.8078 MB / 481.3 MB, free: 10.68 MB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.555, allocations: 4 kB / 481.3 MB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09221/0.6472, allocations: 42.6 MB / 0.5116 GB, free: 472 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.14/10.79, allocations: 8 kB / 0.5116 GB, free: 464 kB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_DOL/IMC_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches