Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.00108/0.00108, allocations: 191 kB / 18 MB, free: 5.105 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.322/1.322, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008662/0.0008662, allocations: 51.91 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2841, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009954/0.2941, allocations: 8.223 MB / 409 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004944/0.299, allocations: 2.692 MB / 411.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000647/0.2997, allocations: 27.88 kB / 411.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.3012, allocations: 0.5715 MB / 412.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.3023, allocations: 0.5002 MB / 412.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004426/0.3027, allocations: 263.6 kB / 413 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.3043, allocations: 1.514 MB / 414.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008459/0.3052, allocations: 0.5808 MB / 415.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006608/0.3059, allocations: 0.572 MB / 415.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006017/0.3065, allocations: 0.6067 MB / 416.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.3066, allocations: 140 kB / 416.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002974/0.3069, allocations: 176 kB / 416.6 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.3072, allocations: 290.9 kB / 416.9 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005912/0.3078, allocations: 0.6687 MB / 417.5 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002067/0.3098, allocations: 1.757 MB / 419.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3099, allocations: 11.92 kB / 419.3 MB, free: 6.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3099, allocations: 0 / 419.3 MB, free: 6.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.3099, allocations: 0 / 419.3 MB, free: 6.195 MB / 334.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.0022/0.3121, allocations: 1.476 MB / 420.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.3121, allocations: 11.89 kB / 420.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006351/0.3128, allocations: 191.3 kB / 421 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.3139, allocations: 0.7542 MB / 421.7 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.19e-05/0.3139, allocations: 78 kB / 421.8 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.3141, allocations: 99.91 kB / 421.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.3155, allocations: 0.9425 MB / 422.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/0.3155, allocations: 3.984 kB / 422.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.3156, allocations: 44 kB / 422.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.3157, allocations: 24 kB / 422.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.3169, allocations: 0.6519 MB / 423.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004785/0.3217, allocations: 3.918 MB / 427.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000771/0.3224, allocations: 451.8 kB / 427.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005768/0.323, allocations: 276.7 kB / 428.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.3231, allocations: 4 kB / 428.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.3231, allocations: 38.56 kB / 428.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.864e-06/0.3231, allocations: 0 / 428.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002732/0.3259, allocations: 1.544 MB / 429.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.3259, allocations: 93.03 kB / 429.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.327, allocations: 0.841 MB / 430.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.327, allocations: 33.69 kB / 430.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003621/0.3274, allocations: 0.5643 MB / 431.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.3275, allocations: 165.6 kB / 431.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.3277, allocations: 130.6 kB / 431.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3278, allocations: 334 kB / 431.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/0.3282, allocations: 169.9 kB / 432.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005021/0.3287, allocations: 471.6 kB / 432.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008714/0.3296, allocations: 0.6758 MB / 433.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3296, allocations: 4 kB / 433.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00126/0.3308, allocations: 0.7906 MB / 434 MB, free: 6.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3309, allocations: 12 kB / 434 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.3309, allocations: 8 kB / 434 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000254/0.3311, allocations: 85.62 kB / 434.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005044/0.3317, allocations: 163.9 kB / 434.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/0.334, allocations: 3.138 MB / 437.4 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000524/0.3346, allocations: 35.88 kB / 437.5 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.3346, allocations: 36 kB / 437.5 MB, free: 2.891 MB / 350.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.00039/0.335, allocations: 269.5 kB / 437.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.3352, allocations: 86.97 kB / 437.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009666/0.3361, allocations: 0.5069 MB / 438.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3362, allocations: 4 kB / 438.4 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.3362, allocations: 128 / 438.4 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.3362, allocations: 0 / 438.4 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/0.3383, allocations: 1.49 MB / 439.9 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3384, allocations: 4 kB / 439.9 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.3387, allocations: 80.11 kB / 439.9 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001988/0.3389, allocations: 69.67 kB / 440 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.3389, allocations: 12 kB / 440 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.3412, allocations: 3.118 MB / 443.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.3412, allocations: 3.938 kB / 443.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.3424, allocations: 0.7978 MB / 443.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.3427, allocations: 200 kB / 444.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.722e-05/0.3428, allocations: 11.94 kB / 444.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004006/0.3432, allocations: 35.91 kB / 444.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.477e-05/0.3433, allocations: 36.03 kB / 444.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.3433, allocations: 20 kB / 444.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006714/0.344, allocations: 0.5693 MB / 444.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.344, allocations: 0 / 444.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007899/0.3448, allocations: 212 kB / 445 MB, free: 10.93 MB / 366.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.0001981/0.345, allocations: 135.1 kB / 445.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.3461, allocations: 0.7094 MB / 445.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3461, allocations: 0 / 445.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006193/0.3467, allocations: 454.4 kB / 446.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009417/0.3477, allocations: 229.4 kB / 446.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.3504, allocations: 1.718 MB / 448.2 MB, free: 7.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005642/0.351, allocations: 1.013 MB / 449.2 MB, free: 6.551 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003482/0.3513, allocations: 107.3 kB / 449.3 MB, free: 6.441 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.3515, allocations: 55.44 kB / 449.4 MB, free: 6.387 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3515, allocations: 0 / 449.4 MB, free: 6.387 MB / 366.1 MB Notification: Performance of Templates: time 0.0193/0.3708, allocations: 10.86 MB / 460.3 MB, free: 11.66 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches