Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00155/0.00155, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001329/0.00133, allocations: 205.2 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.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 63.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2846, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01353/0.2982, allocations: 10.33 MB / 419.1 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007584/0.3058, allocations: 3.275 MB / 422.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001884/0.3078, allocations: 55.75 kB / 422.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002342/0.3102, allocations: 0.6947 MB / 423.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00388/0.3141, allocations: 0.8815 MB / 424 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.3155, allocations: 423.5 kB / 424.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005408/0.3209, allocations: 3.416 MB / 427.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004198/0.3251, allocations: 2.611 MB / 430.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002741/0.3279, allocations: 1.519 MB / 432 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003311/0.3312, allocations: 1.86 MB / 433.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001136/0.3324, allocations: 400 kB / 434.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001607/0.334, allocations: 495.8 kB / 434.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.3355, allocations: 1.11 MB / 435.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002408/0.3379, allocations: 1.777 MB / 437.6 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006713/0.3446, allocations: 5.244 MB / 442.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3447, allocations: 4 kB / 442.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.459e-06/0.3447, allocations: 0 / 442.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001628/0.3448, allocations: 3.938 kB / 442.8 MB, free: 15.29 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.008028/0.3529, allocations: 3.63 MB / 446.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.3529, allocations: 12.03 kB / 446.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005182/0.3535, allocations: 367 kB / 446.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.3547, allocations: 398.7 kB / 447.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003785/0.3585, allocations: 1.958 MB / 449.2 MB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/0.3587, allocations: 197.1 kB / 449.4 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004361/0.3591, allocations: 256 kB / 449.6 MB, free: 8.363 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006082/0.3652, allocations: 3.539 MB / 453.2 MB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.933e-05/0.3653, allocations: 11.89 kB / 453.2 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002416/0.3656, allocations: 104 kB / 453.3 MB, free: 4.609 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001228/0.3657, allocations: 108.9 kB / 453.4 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005567/0.3713, allocations: 3.095 MB / 456.5 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0176/0.3889, allocations: 10.76 MB / 467.3 MB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003654/0.3926, allocations: 3.07 MB / 470.3 MB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002289/0.3949, allocations: 1.407 MB / 471.7 MB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00027/0.3952, allocations: 126.3 kB / 471.9 MB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001809/0.397, allocations: 1.148 MB / 473 MB, free: 348 kB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.577e-06/0.397, allocations: 0 / 473 MB, free: 348 kB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.01992/0.417, allocations: 8.913 MB / 481.9 MB, free: 7.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.4171, allocations: 180.2 kB / 482.1 MB, free: 7.066 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002728/0.4199, allocations: 1.852 MB / 483.9 MB, free: 5.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/0.4201, allocations: 53.7 kB / 484 MB, free: 5.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001149/0.4212, allocations: 1.238 MB / 485.2 MB, free: 3.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005447/0.4218, allocations: 0.581 MB / 485.8 MB, free: 3.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006029/0.4224, allocations: 355.5 kB / 486.2 MB, free: 2.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.4225, allocations: 313.1 kB / 486.5 MB, free: 2.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001622/0.4242, allocations: 0.9955 MB / 487.5 MB, free: 1.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/0.4262, allocations: 1.434 MB / 488.9 MB, free: 68 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004006/0.4302, allocations: 2.45 MB / 491.3 MB, free: 13.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.574e-05/0.4303, allocations: 4 kB / 491.4 MB, free: 13.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.0063/0.4366, allocations: 3.343 MB / 494.7 MB, free: 10.1 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.4366, allocations: 8 kB / 494.7 MB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.4367, allocations: 15.94 kB / 494.7 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/0.4388, allocations: 0.8804 MB / 495.6 MB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.4401, allocations: 339.4 kB / 495.9 MB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/0.4534, allocations: 10.43 MB / 0.4945 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002204/0.4556, allocations: 131.9 kB / 0.4946 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004015/0.456, allocations: 71.98 kB / 0.4947 GB, free: 13.8 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(2,12,100.0%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002474/0.4585, allocations: 0.933 MB / 0.4956 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007617/0.4593, allocations: 218.6 kB / 0.4958 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006394/0.4657, allocations: 3.107 MB / 0.4988 GB, free: 9.504 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.4658, allocations: 16 kB / 0.4989 GB, free: 9.488 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.09e-05/0.4658, allocations: 11.98 kB / 0.4989 GB, free: 9.477 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.078e-05/0.4658, allocations: 7.969 kB / 0.4989 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/0.4788, allocations: 6.222 MB / 0.505 GB, free: 3.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.4788, allocations: 0 / 0.505 GB, free: 3.141 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009519/0.4798, allocations: 211.7 kB / 0.5052 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002438/0.4823, allocations: 0.9329 MB / 0.5061 GB, free: 1.984 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/0.4824, allocations: 44.16 kB / 0.5061 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0147/0.4972, allocations: 12.02 MB / 0.5178 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/0.4972, allocations: 7.969 kB / 0.5179 GB, free: 5.348 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008747/0.506, allocations: 4.52 MB / 0.5223 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/0.5074, allocations: 0.4995 MB / 0.5228 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005611/0.508, allocations: 35.98 kB / 0.5228 GB, free: 220 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.5093, allocations: 103.8 kB / 0.5229 GB, free: 116 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000654/0.5099, allocations: 201.1 kB / 0.5231 GB, free: 15.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.5101, allocations: 47.98 kB / 0.5231 GB, free: 15.87 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002439/0.5125, allocations: 1.267 MB / 0.5244 GB, free: 14.61 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5125, allocations: 0 / 0.5244 GB, free: 14.61 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002514/0.5151, allocations: 0.6328 MB / 0.525 GB, free: 13.98 MB / 462.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: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (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.008425/0.5235, allocations: 5.189 MB / 0.5301 GB, free: 8.719 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005741/0.5293, allocations: 3.265 MB / 0.5332 GB, free: 5.371 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.5293, allocations: 4 kB / 0.5332 GB, free: 5.367 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003731/0.5331, allocations: 2.242 MB / 0.5354 GB, free: 3.047 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003488/0.5366, allocations: 0.5676 MB / 0.536 GB, free: 2.484 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2567/0.7933, allocations: 22.5 MB / 0.558 GB, free: 117 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001714/0.795, allocations: 2.188 MB / 0.5601 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001435/0.7965, allocations: 454.9 kB / 0.5605 GB, free: 114.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.7975, allocations: 1.011 MB / 0.5615 GB, free: 113.6 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.7976, allocations: 0 / 0.5615 GB, free: 113.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/0.9, allocations: 59.92 MB / 0.62 GB, free: 54.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/14.46, allocations: 0 / 0.62 GB, free: 54.29 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches