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.001177/0.001177, allocations: 106 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 205.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3149, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009496/0.3245, allocations: 8.242 MB / 418.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004732/0.3292, allocations: 2.739 MB / 420.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.3306, allocations: 35.88 kB / 421 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001829/0.3325, allocations: 0.5481 MB / 421.5 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001478/0.334, allocations: 488.1 kB / 422 MB, free: 5.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000601/0.3346, allocations: 271.6 kB / 422.2 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001616/0.3362, allocations: 1.502 MB / 423.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000783/0.337, allocations: 0.5847 MB / 424.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007523/0.3378, allocations: 0.5642 MB / 424.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007186/0.3385, allocations: 0.6183 MB / 425.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001849/0.3387, allocations: 144 kB / 425.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003852/0.3391, allocations: 184 kB / 425.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002041/0.3393, allocations: 286.9 kB / 426.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000544/0.3399, allocations: 0.6765 MB / 426.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001668/0.3415, allocations: 1.757 MB / 428.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3415, allocations: 0 / 428.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3416, allocations: 0 / 428.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.3416, allocations: 7.938 kB / 428.6 MB, free: 14.89 MB / 350.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.002343/0.3439, allocations: 1.48 MB / 430 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.344, allocations: 12.03 kB / 430 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000733/0.3447, allocations: 195.3 kB / 430.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.3459, allocations: 0.7697 MB / 431 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/0.346, allocations: 70 kB / 431.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.3462, allocations: 103.9 kB / 431.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.3478, allocations: 0.9424 MB / 432.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.382e-05/0.3478, allocations: 11.98 kB / 432.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.954e-05/0.3479, allocations: 36 kB / 432.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.3479, allocations: 24 kB / 432.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.3492, allocations: 0.6481 MB / 432.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00479/0.354, allocations: 3.914 MB / 436.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000695/0.3547, allocations: 451.7 kB / 437.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006205/0.3553, allocations: 276.6 kB / 437.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/0.3554, allocations: 4 kB / 437.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.3554, allocations: 38.56 kB / 437.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.635e-06/0.3554, allocations: 0 / 437.5 MB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.00299/0.3584, allocations: 1.554 MB / 439.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.3585, allocations: 85.09 kB / 439.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.3596, allocations: 0.8449 MB / 440 MB, free: 2.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.3597, allocations: 33.7 kB / 440 MB, free: 2.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005192/0.3602, allocations: 0.5604 MB / 440.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.3603, allocations: 157.8 kB / 440.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.3605, allocations: 134.5 kB / 440.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3606, allocations: 337.9 kB / 441.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.361, allocations: 165.9 kB / 441.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005049/0.3615, allocations: 479.6 kB / 441.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009089/0.3624, allocations: 0.6801 MB / 442.5 MB, free: 132 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.3624, allocations: 0 / 442.5 MB, free: 132 kB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0013/0.3637, allocations: 0.7827 MB / 443.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3638, allocations: 14.75 kB / 443.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3638, allocations: 8 kB / 443.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.364, allocations: 85.94 kB / 443.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005051/0.3646, allocations: 159.7 kB / 443.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.3669, allocations: 3.146 MB / 446.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005365/0.3674, allocations: 36.05 kB / 446.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.122e-05/0.3675, allocations: 32 kB / 446.8 MB, free: 11.57 MB / 366.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.0003669/0.3678, allocations: 269.4 kB / 447 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.368, allocations: 90.88 kB / 447.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009765/0.369, allocations: 0.507 MB / 447.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.369, allocations: 4 kB / 447.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.369, allocations: 7.938 kB / 447.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.369, allocations: 0 / 447.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/0.3711, allocations: 1.47 MB / 449.1 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3711, allocations: 3.984 kB / 449.1 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003219/0.3715, allocations: 71.91 kB / 449.2 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002001/0.3717, allocations: 73.89 kB / 449.2 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.3717, allocations: 12 kB / 449.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.374, allocations: 3.131 MB / 452.4 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.374, allocations: 4.031 kB / 452.4 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.3754, allocations: 0.8053 MB / 453.2 MB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002903/0.3757, allocations: 200 kB / 453.4 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3758, allocations: 15.94 kB / 453.4 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004391/0.3763, allocations: 31.97 kB / 453.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.111e-05/0.3764, allocations: 39.7 kB / 453.5 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.3764, allocations: 11.94 kB / 453.5 MB, free: 4.375 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007773/0.3772, allocations: 0.5732 MB / 454.1 MB, free: 3.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3772, allocations: 4 kB / 454.1 MB, free: 3.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008324/0.378, allocations: 208 kB / 454.3 MB, free: 3.602 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.000244/0.3783, allocations: 126.2 kB / 454.4 MB, free: 3.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.3795, allocations: 0.703 MB / 455.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.3795, allocations: 0.5625 kB / 455.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006714/0.3802, allocations: 469 kB / 455.6 MB, free: 2.262 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.3813, allocations: 238.9 kB / 455.8 MB, free: 2.031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.384, allocations: 1.77 MB / 457.6 MB, free: 212 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.3846, allocations: 1.013 MB / 458.6 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.3848, allocations: 59.44 kB / 458.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3848, allocations: 0 / 458.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of Templates: time 0.02612/0.4109, allocations: 21.45 MB / 480.1 MB, free: 9.691 MB / 398.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 -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