Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,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_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,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_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009839/0.0009838, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00231/0.00231, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 60.19 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09168/0.09285, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00926/0.1022, allocations: 8.239 MB / 367.1 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004188/0.1064, allocations: 2.758 MB / 369.9 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005222/0.1069, allocations: 23.94 kB / 369.9 MB, free: 2.266 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.1082, allocations: 0.5558 MB / 370.5 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000937/0.1092, allocations: 476.2 kB / 370.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004983/0.1097, allocations: 275.6 kB / 371.2 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1679/0.2775, allocations: 1.499 MB / 372.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.2786, allocations: 0.5899 MB / 373.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.2796, allocations: 0.5619 MB / 373.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007166/0.2804, allocations: 0.6156 MB / 374.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001918/0.2806, allocations: 140.2 kB / 374.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004152/0.281, allocations: 182.3 kB / 374.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002348/0.2812, allocations: 288.2 kB / 375.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006004/0.2818, allocations: 0.673 MB / 375.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001903/0.2837, allocations: 1.76 MB / 377.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2838, allocations: 1.281 kB / 377.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2838, allocations: 0 / 377.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.096e-05/0.2838, allocations: 1.969 kB / 377.5 MB, free: 10.49 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002393/0.2862, allocations: 1.475 MB / 379 MB, free: 9.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2862, allocations: 16.34 kB / 379 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000742/0.287, allocations: 196.7 kB / 379.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.2882, allocations: 0.7738 MB / 380 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.864e-05/0.2882, allocations: 72.44 kB / 380 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.2884, allocations: 95.52 kB / 380.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.2901, allocations: 0.9459 MB / 381.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.687e-05/0.2902, allocations: 10.58 kB / 381.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.311e-05/0.2903, allocations: 37.66 kB / 381.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-05/0.2903, allocations: 23.62 kB / 381.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.2917, allocations: 0.6496 MB / 381.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004995/0.2967, allocations: 3.909 MB / 385.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008399/0.2975, allocations: 455.4 kB / 386.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006603/0.2982, allocations: 275.4 kB / 386.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.245e-05/0.2983, allocations: 4.969 kB / 386.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.2983, allocations: 33.19 kB / 386.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.767e-06/0.2983, allocations: 0 / 386.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002725/0.3011, allocations: 1.54 MB / 388 MB, free: 4.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.3011, allocations: 86.23 kB / 388.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/0.3022, allocations: 0.8467 MB / 388.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.3022, allocations: 40.89 kB / 389 MB, free: 4.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/0.3025, allocations: 0.5692 MB / 389.5 MB, free: 3.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.668e-05/0.3026, allocations: 162.7 kB / 389.7 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.3028, allocations: 130.5 kB / 389.8 MB, free: 3.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.777e-05/0.3029, allocations: 333.4 kB / 390.1 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.3032, allocations: 169.3 kB / 390.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004551/0.3037, allocations: 476.7 kB / 390.8 MB, free: 2.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008171/0.3045, allocations: 0.6701 MB / 391.4 MB, free: 2.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.3045, allocations: 2.406 kB / 391.4 MB, free: 2.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001347/0.3059, allocations: 0.7867 MB / 392.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.3059, allocations: 11.97 kB / 392.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.3059, allocations: 12.66 kB / 392.3 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002584/0.3062, allocations: 81.11 kB / 392.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005111/0.3067, allocations: 155.6 kB / 392.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002106/0.3088, allocations: 3.163 MB / 395.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006142/0.3095, allocations: 37.36 kB / 395.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.872e-05/0.3095, allocations: 32.44 kB / 395.7 MB, free: 14.73 MB / 318.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 (85): * Single equations (assignments): 83 * 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.0003921/0.3099, allocations: 265.7 kB / 396 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.3101, allocations: 93.88 kB / 396.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009313/0.311, allocations: 0.4941 MB / 396.6 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.311, allocations: 8.062 kB / 396.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.311, allocations: 5.375 kB / 396.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3111, allocations: 4.188 kB / 396.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.3133, allocations: 1.473 MB / 398.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3133, allocations: 1.375 kB / 398.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.3136, allocations: 71.94 kB / 398.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001918/0.3138, allocations: 77.8 kB / 398.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.3138, allocations: 12.09 kB / 398.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/0.3162, allocations: 3.123 MB / 401.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3162, allocations: 2.656 kB / 401.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.3176, allocations: 0.8002 MB / 402.1 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.3179, allocations: 202 kB / 402.3 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.318, allocations: 11.75 kB / 402.3 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/0.3185, allocations: 36.28 kB / 402.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.731e-05/0.3186, allocations: 43.11 kB / 402.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.3187, allocations: 17.53 kB / 402.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008221/0.3195, allocations: 0.5703 MB / 403 MB, free: 9.051 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3195, allocations: 0 / 403 MB, free: 9.051 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009454/0.3204, allocations: 217.5 kB / 403.2 MB, free: 9.023 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 (39): * Single equations (assignments): 37 * 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.0002236/0.3207, allocations: 122.5 kB / 403.3 MB, free: 8.922 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3218, allocations: 0.7047 MB / 404 MB, free: 8.504 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3218, allocations: 2.875 kB / 404.1 MB, free: 8.504 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006271/0.3225, allocations: 453 kB / 404.5 MB, free: 8.176 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009863/0.3235, allocations: 231.7 kB / 404.7 MB, free: 8.062 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.3263, allocations: 1.734 MB / 406.5 MB, free: 6.961 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006242/0.3269, allocations: 1.011 MB / 407.5 MB, free: 6.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003801/0.3273, allocations: 113.2 kB / 407.6 MB, free: 6.062 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.3274, allocations: 55.5 kB / 407.6 MB, free: 6.055 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3274, allocations: 0 / 407.6 MB, free: 6.055 MB / 318.1 MB Notification: Performance of Templates: time 0.01943/0.3469, allocations: 10.73 MB / 418.4 MB, free: 12.05 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches