Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007983/0.0007984, allocations: 96.66 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009399/0.0009399, allocations: 204.1 kB / 18.93 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002133/0.0002134, allocations: 4 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08981/0.09004, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007794/0.09788, allocations: 7.578 MB / 367.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004487/0.1024, allocations: 2.611 MB / 370.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.1035, allocations: 27.94 kB / 370.1 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.1051, allocations: 0.4903 MB / 370.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.1066, allocations: 405.2 kB / 371 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006089/0.1072, allocations: 223.8 kB / 371.2 MB, free: 1.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001784/0.109, allocations: 1.389 MB / 372.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007995/0.1098, allocations: 0.4928 MB / 373.1 MB, free: 12 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1721/0.2819, allocations: 471.7 kB / 373.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.2832, allocations: 0.5154 MB / 374.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004179/0.2836, allocations: 64.59 kB / 374.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006341/0.2843, allocations: 106.1 kB / 374.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002645/0.2846, allocations: 205.8 kB / 374.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.2856, allocations: 0.5964 MB / 375.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002102/0.2878, allocations: 1.35 MB / 376.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.2878, allocations: 1.25 kB / 376.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.2878, allocations: 1.281 kB / 376.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.933e-05/0.2879, allocations: 0.5 kB / 376.4 MB, free: 10.09 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003238/0.2911, allocations: 1.25 MB / 377.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.2912, allocations: 15.33 kB / 377.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009932/0.2922, allocations: 185.8 kB / 377.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/0.2937, allocations: 0.7373 MB / 378.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.975e-05/0.2938, allocations: 71.5 kB / 378.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002289/0.294, allocations: 105.7 kB / 378.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002064/0.2961, allocations: 0.9366 MB / 379.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.65e-05/0.2961, allocations: 5.719 kB / 379.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.994e-05/0.2962, allocations: 40.41 kB / 379.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.001e-05/0.2963, allocations: 24.69 kB / 379.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.2978, allocations: 0.6429 MB / 380.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00554/0.3033, allocations: 3.945 MB / 384.4 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006323/0.304, allocations: 449.1 kB / 384.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005536/0.3046, allocations: 262.1 kB / 385.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.3046, allocations: 9.156 kB / 385.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.3046, allocations: 37.64 kB / 385.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.924e-06/0.3046, allocations: 0 / 385.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002736/0.3074, allocations: 1.419 MB / 386.5 MB, free: 5.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.3074, allocations: 85.61 kB / 386.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.3087, allocations: 0.8229 MB / 387.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.3087, allocations: 35.92 kB / 387.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003291/0.3091, allocations: 0.556 MB / 388 MB, free: 4.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.469e-05/0.3092, allocations: 157.5 kB / 388.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-05/0.3093, allocations: 70 kB / 388.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.44e-05/0.3093, allocations: 334.7 kB / 388.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003529/0.3097, allocations: 169.8 kB / 388.7 MB, free: 4.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004752/0.3102, allocations: 460.4 kB / 389.2 MB, free: 3.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008458/0.311, allocations: 0.6745 MB / 389.9 MB, free: 3.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.3111, allocations: 6.25 kB / 389.9 MB, free: 3.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001362/0.3124, allocations: 0.7739 MB / 390.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3125, allocations: 9.312 kB / 390.7 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.3125, allocations: 9.656 kB / 390.7 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002508/0.3127, allocations: 86.38 kB / 390.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.3132, allocations: 153.8 kB / 390.9 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.3149, allocations: 2.878 MB / 393.8 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006702/0.3156, allocations: 39.94 kB / 393.8 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.3157, allocations: 35.31 kB / 393.8 MB, free: 304 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004155/0.3161, allocations: 268 kB / 394.1 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.3163, allocations: 84.06 kB / 394.2 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009906/0.3173, allocations: 499.5 kB / 394.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.3173, allocations: 4.281 kB / 394.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3173, allocations: 1.469 kB / 394.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.3173, allocations: 3.938 kB / 394.7 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002698/0.32, allocations: 1.448 MB / 396.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.32, allocations: 2.281 kB / 396.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/0.3203, allocations: 70.12 kB / 396.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002084/0.3205, allocations: 80.67 kB / 396.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.3206, allocations: 8.25 kB / 396.3 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0022/0.3228, allocations: 2.87 MB / 399.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3228, allocations: 2.969 kB / 399.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.3241, allocations: 0.7752 MB / 399.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003419/0.3244, allocations: 196.8 kB / 400.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.3246, allocations: 12.12 kB / 400.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.3251, allocations: 35.17 kB / 400.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.284e-05/0.3252, allocations: 36.8 kB / 400.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.3252, allocations: 11 kB / 400.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009887/0.3262, allocations: 0.5682 MB / 400.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.3262, allocations: 0 / 400.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009969/0.3272, allocations: 205.1 kB / 401 MB, free: 10.89 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,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.0002204/0.3274, allocations: 121 kB / 401.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.3287, allocations: 0.7011 MB / 401.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3287, allocations: 0 / 401.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006681/0.3294, allocations: 443.4 kB / 402.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.3309, allocations: 218.7 kB / 402.5 MB, free: 9.957 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.3346, allocations: 2.256 MB / 404.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007387/0.3353, allocations: 1.004 MB / 405.7 MB, free: 7.492 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.3355, allocations: 61.67 kB / 405.8 MB, free: 7.48 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3356, allocations: 6.906 kB / 405.8 MB, free: 7.477 MB / 318.1 MB Notification: Performance of Templates: time 0.02511/0.3607, allocations: 20.72 MB / 426.5 MB, free: 4.316 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches