Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00172/0.00172, allocations: 199.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.652/1.652, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000798/0.0007982, allocations: 113.1 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002305/0.0002306, allocations: 4 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2035, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.005263/0.2088, allocations: 7.24 MB / 415.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003749/0.2125, allocations: 2.567 MB / 417.9 MB, free: 17.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006681/0.2132, allocations: 35.88 kB / 417.9 MB, free: 17.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00122/0.2145, allocations: 0.5011 MB / 418.4 MB, free: 17.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001151/0.2156, allocations: 0.5555 MB / 418.9 MB, free: 16.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004803/0.2161, allocations: 179.7 kB / 419.1 MB, free: 16.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.2176, allocations: 2.128 MB / 421.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.2187, allocations: 1.159 MB / 422.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006766/0.2194, allocations: 0.6926 MB / 423.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007798/0.2202, allocations: 0.8989 MB / 424 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001585/0.2204, allocations: 104 kB / 424.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003842/0.2208, allocations: 199.8 kB / 424.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003593/0.2211, allocations: 0.4906 MB / 424.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005819/0.2217, allocations: 0.8571 MB / 425.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001287/0.223, allocations: 2.411 MB / 428.1 MB, free: 7.605 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.223, allocations: 3.984 kB / 428.1 MB, free: 7.602 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.223, allocations: 0 / 428.1 MB, free: 7.602 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.185e-05/0.2231, allocations: 0 / 428.1 MB, free: 7.602 MB / 298.7 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.002399/0.2255, allocations: 1.802 MB / 429.9 MB, free: 5.742 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.2255, allocations: 12.03 kB / 429.9 MB, free: 5.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004446/0.2259, allocations: 222.6 kB / 430.1 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.2272, allocations: 1.099 MB / 431.2 MB, free: 4.371 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.2273, allocations: 115.4 kB / 431.3 MB, free: 4.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00017/0.2275, allocations: 159.8 kB / 431.5 MB, free: 4.102 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002694/0.2302, allocations: 1.947 MB / 433.4 MB, free: 2.109 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.425e-05/0.2302, allocations: 7.906 kB / 433.4 MB, free: 2.102 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001806/0.2304, allocations: 60 kB / 433.5 MB, free: 2.043 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-05/0.2305, allocations: 74.91 kB / 433.5 MB, free: 1.969 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.2336, allocations: 1.573 MB / 435.1 MB, free: 400 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01221/0.2458, allocations: 6.373 MB / 441.5 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001747/0.2476, allocations: 0.8336 MB / 442.3 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.2489, allocations: 0.5775 MB / 442.9 MB, free: 8.355 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002459/0.2492, allocations: 117.6 kB / 443 MB, free: 8.223 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.2493, allocations: 47.06 kB / 443.1 MB, free: 8.168 MB / 314.7 MB Notification: Performance of pre-optimization done (n=65): time 3.467e-06/0.2493, allocations: 0 / 443.1 MB, free: 8.168 MB / 314.7 MB Notification: Performance of matching and sorting (n=85): time 0.01725/0.2665, allocations: 5.889 MB / 449 MB, free: 2.137 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.2666, allocations: 64.39 kB / 449 MB, free: 2.062 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001599/0.2682, allocations: 1.141 MB / 450.2 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-05/0.2683, allocations: 41.7 kB / 450.2 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004866/0.2688, allocations: 0.7748 MB / 451 MB, free: 76 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.269, allocations: 311.5 kB / 451.3 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.521e-05/0.2691, allocations: 24 kB / 451.3 MB, free: 15.74 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.2692, allocations: 353.9 kB / 451.6 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007658/0.27, allocations: 0.5335 MB / 452.2 MB, free: 14.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000958/0.271, allocations: 0.8757 MB / 453.1 MB, free: 13.83 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001809/0.2728, allocations: 1.508 MB / 454.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.2728, allocations: 4 kB / 454.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003215/0.276, allocations: 2.039 MB / 456.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.276, allocations: 12 kB / 456.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.2761, allocations: 11.94 kB / 456.6 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.2774, allocations: 0.5516 MB / 457.2 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007996/0.2782, allocations: 239.6 kB / 457.4 MB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007364/0.2856, allocations: 7.908 MB / 465.3 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007903/0.2864, allocations: 71.92 kB / 465.4 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.224e-05/0.2865, allocations: 44 kB / 465.4 MB, free: 0.7266 MB / 330.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(4,87.5%) 8,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007798/0.2873, allocations: 0.5209 MB / 466 MB, free: 200 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.2875, allocations: 122.5 kB / 466.1 MB, free: 76 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002946/0.2905, allocations: 1.762 MB / 467.8 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.2905, allocations: 8 kB / 467.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.2905, allocations: 8 kB / 467.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.2905, allocations: 7.969 kB / 467.9 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006752/0.2973, allocations: 3.742 MB / 471.6 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.2973, allocations: 4 kB / 471.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006451/0.298, allocations: 123.9 kB / 471.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001826/0.2998, allocations: 0.5995 MB / 472.3 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.239e-05/0.2999, allocations: 23.98 kB / 472.4 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007233/0.3072, allocations: 7.069 MB / 479.4 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3072, allocations: 4 kB / 479.4 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00358/0.3108, allocations: 2.478 MB / 481.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005188/0.3113, allocations: 311.5 kB / 482.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.3115, allocations: 23.98 kB / 482.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006469/0.3121, allocations: 55.94 kB / 482.3 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.3123, allocations: 68.56 kB / 482.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.394e-05/0.3124, allocations: 31.92 kB / 482.4 MB, free: 15.17 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00112/0.3135, allocations: 0.7778 MB / 483.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3135, allocations: 0 / 483.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001204/0.3147, allocations: 372 kB / 483.5 MB, free: 14.02 MB / 362.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,69.4%) 14,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003224/0.315, allocations: 175 kB / 483.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003124/0.3182, allocations: 2.123 MB / 485.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3182, allocations: 0 / 485.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00199/0.3202, allocations: 1.299 MB / 487.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.322, allocations: 351.8 kB / 487.5 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005223/0.3273, allocations: 3.949 MB / 491.4 MB, free: 5.918 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/0.3285, allocations: 1.456 MB / 492.9 MB, free: 4.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/0.3288, allocations: 87.42 kB / 493 MB, free: 4.344 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3288, allocations: 0 / 493 MB, free: 4.344 MB / 362.7 MB Notification: Performance of Templates: time 0.1899/0.5187, allocations: 58.9 MB / 0.5389 GB, free: 62.93 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_DCBraking/IMC_DCBraking.csv","../files/Modelica_trunk_cpp_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