Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 105.8 kB / 17.59 MB, free: 5.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 191.3 kB / 18.52 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 51.05 kB / 301.3 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08695/0.08806, allocations: 49.45 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009506/0.0976, allocations: 8.165 MB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005442/0.1031, allocations: 2.714 MB / 361.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.1045, allocations: 39.88 kB / 361.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002157/0.1068, allocations: 0.6018 MB / 362.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002341/0.1091, allocations: 0.625 MB / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000942/0.1101, allocations: 287.6 kB / 363.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002867/0.113, allocations: 2.023 MB / 365.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0021/0.1151, allocations: 1.424 MB / 366.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.1166, allocations: 0.8759 MB / 367.5 MB, free: 3.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001721/0.1184, allocations: 1.063 MB / 368.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005707/0.119, allocations: 228 kB / 368.8 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001/0.12, allocations: 319.8 kB / 369.1 MB, free: 1.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008908/0.1209, allocations: 0.635 MB / 369.7 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001757/0.1226, allocations: 1.031 MB / 370.7 MB, free: 292 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.167/0.2897, allocations: 2.956 MB / 373.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.2897, allocations: 0 / 373.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2898, allocations: 1.938 kB / 373.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.642e-05/0.2898, allocations: 0 / 373.7 MB, free: 13.88 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004407/0.2942, allocations: 2.13 MB / 375.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2943, allocations: 10.33 kB / 375.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006526/0.295, allocations: 215.2 kB / 376.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001743/0.2967, allocations: 1.099 MB / 377.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.922e-05/0.2968, allocations: 111.8 kB / 377.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/0.297, allocations: 158.2 kB / 377.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003127/0.3002, allocations: 1.966 MB / 379.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.845e-05/0.3002, allocations: 6.984 kB / 379.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.3004, allocations: 61.31 kB / 379.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.3005, allocations: 77.55 kB / 379.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002467/0.303, allocations: 1.585 MB / 381.1 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008668/0.3116, allocations: 6.333 MB / 387.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.313, allocations: 0.8382 MB / 388.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009012/0.3139, allocations: 0.577 MB / 388.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002061/0.3141, allocations: 117.2 kB / 389 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.3141, allocations: 46.05 kB / 389 MB, free: 7.582 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 3.196e-06/0.3141, allocations: 4 kB / 389 MB, free: 7.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01301/0.3272, allocations: 5.82 MB / 394.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.3272, allocations: 60.84 kB / 394.9 MB, free: 4.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/0.3287, allocations: 1.146 MB / 396 MB, free: 3.645 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.063e-05/0.3288, allocations: 44.2 kB / 396.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003398/0.3291, allocations: 0.7694 MB / 396.9 MB, free: 2.922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.3293, allocations: 304.7 kB / 397.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.3295, allocations: 212.5 kB / 397.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.146e-05/0.3296, allocations: 349 kB / 397.7 MB, free: 2.203 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006173/0.3302, allocations: 0.5437 MB / 398.3 MB, free: 1.934 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007298/0.331, allocations: 0.8784 MB / 399.1 MB, free: 1.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.3324, allocations: 1.529 MB / 400.7 MB, free: 208 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.3324, allocations: 2.969 kB / 400.7 MB, free: 208 kB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003248/0.3357, allocations: 2.043 MB / 402.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3357, allocations: 12 kB / 402.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.3358, allocations: 8 kB / 402.7 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/0.3371, allocations: 0.5569 MB / 403.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008237/0.338, allocations: 242.2 kB / 403.5 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007934/0.3459, allocations: 8.657 MB / 412.2 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.3472, allocations: 71.92 kB / 412.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.24e-05/0.3473, allocations: 45.34 kB / 412.3 MB, free: 4.516 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 4 systems {(1,1,100.0%), (4,8,87.5%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009691/0.3483, allocations: 0.5276 MB / 412.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/0.3486, allocations: 126.5 kB / 412.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00297/0.3515, allocations: 1.769 MB / 414.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.3516, allocations: 8 kB / 414.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/0.3516, allocations: 4 kB / 414.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3516, allocations: 7.984 kB / 414.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006616/0.3582, allocations: 3.748 MB / 418.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.3583, allocations: 0.75 kB / 418.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005306/0.3588, allocations: 132.3 kB / 418.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001539/0.3604, allocations: 0.5918 MB / 419.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.563e-05/0.3605, allocations: 23.98 kB / 419.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007991/0.3685, allocations: 7.709 MB / 426.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.3685, allocations: 0 / 426.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00399/0.3725, allocations: 2.479 MB / 429.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008197/0.3734, allocations: 315.5 kB / 429.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000347/0.3737, allocations: 24 kB / 429.7 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008086/0.3745, allocations: 55.88 kB / 429.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.3747, allocations: 64.56 kB / 429.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.041e-05/0.3748, allocations: 31.98 kB / 429.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001295/0.3761, allocations: 0.7885 MB / 430.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3761, allocations: 0 / 430.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001608/0.3777, allocations: 376 kB / 431 MB, free: 1.277 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (imc.inertiaRotor.w,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 59 * 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 {(6,14,69.4%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003921/0.3781, allocations: 180 kB / 431.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003861/0.382, allocations: 2.355 MB / 433.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.382, allocations: 4.125 kB / 433.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002111/0.3842, allocations: 1.303 MB / 434.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/0.3864, allocations: 372.5 kB / 435.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005671/0.3921, allocations: 3.359 MB / 438.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.3933, allocations: 1.444 MB / 440 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003209/0.3936, allocations: 87.42 kB / 440.1 MB, free: 8.027 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3936, allocations: 0 / 440.1 MB, free: 8.027 MB / 350.1 MB Notification: Performance of Templates: time 0.06123/0.4548, allocations: 59.06 MB / 499.2 MB, free: 13.05 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_DCBraking/IMC_DCBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,imc.idq_rr[1],imc.idq_rr[2],loadInertia.phi,loadInertia.w,imc.idq_sr[1],imc.idq_sr[2],imc.is[1],imc.is[2],tauElectrical,tauShaft,wMechanical Variables in the result:imc.idq_rr[1],imc.idq_rr[2],imc.idq_sr[1],imc.idq_sr[2],imc.is[1],imc.is[2],loadInertia.phi,loadInertia.w,tauElectrical,tauShaft,time,wMechanical