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.0008382/0.0008385, allocations: 96.33 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008566/0.0008568, allocations: 207.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003706, allocations: 8 kB / 307.7 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09821/0.0986, allocations: 51.53 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00857/0.1072, allocations: 7.714 MB / 367 MB, free: 5.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005335/0.1126, allocations: 2.692 MB / 369.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.1137, allocations: 27.94 kB / 369.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.1152, allocations: 0.5019 MB / 370.2 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001268/0.1165, allocations: 409.1 kB / 370.6 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.117, allocations: 231.8 kB / 370.8 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.1185, allocations: 1.436 MB / 372.3 MB, free: 248 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1811/0.2996, allocations: 493.8 kB / 372.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.3008, allocations: 487.1 kB / 373.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006704/0.3015, allocations: 0.53 MB / 373.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.3017, allocations: 66.16 kB / 373.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003371/0.302, allocations: 111.7 kB / 373.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.3022, allocations: 205.4 kB / 374.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006864/0.3029, allocations: 0.6107 MB / 374.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002113/0.305, allocations: 1.646 MB / 376.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.305, allocations: 5.594 kB / 376.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.305, allocations: 1 kB / 376.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.379e-05/0.3051, allocations: 0 / 376.4 MB, free: 9.512 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.002193/0.3073, allocations: 1.282 MB / 377.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.3073, allocations: 9.625 kB / 377.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007582/0.3081, allocations: 206.3 kB / 377.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.3092, allocations: 0.7541 MB / 378.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.998e-05/0.3093, allocations: 70.66 kB / 378.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.3095, allocations: 97.55 kB / 378.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.3112, allocations: 0.9517 MB / 379.8 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.817e-05/0.3113, allocations: 9.484 kB / 379.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.305e-05/0.3114, allocations: 42.84 kB / 379.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.595e-05/0.3114, allocations: 23.47 kB / 379.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.3128, allocations: 0.6643 MB / 380.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/0.3182, allocations: 3.981 MB / 384.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007292/0.3189, allocations: 453.8 kB / 384.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005611/0.3195, allocations: 275.2 kB / 385.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.529e-05/0.3195, allocations: 4.969 kB / 385.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.3196, allocations: 37.56 kB / 385.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.276e-06/0.3196, allocations: 0 / 385.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003178/0.3228, allocations: 1.581 MB / 386.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.3228, allocations: 85.3 kB / 386.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.324, allocations: 0.8469 MB / 387.7 MB, free: 4.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.3241, allocations: 32.08 kB / 387.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/0.3243, allocations: 0.5679 MB / 388.3 MB, free: 4.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.115e-05/0.3244, allocations: 159 kB / 388.5 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/0.3245, allocations: 67.2 kB / 388.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.174e-05/0.3246, allocations: 331.2 kB / 388.9 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003351/0.3249, allocations: 180.9 kB / 389.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004521/0.3254, allocations: 484.9 kB / 389.5 MB, free: 3.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008224/0.3262, allocations: 0.6818 MB / 390.2 MB, free: 2.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3262, allocations: 6.312 kB / 390.2 MB, free: 2.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001417/0.3276, allocations: 0.8058 MB / 391 MB, free: 2.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.3277, allocations: 13 kB / 391 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.3277, allocations: 9.188 kB / 391 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002833/0.328, allocations: 77.27 kB / 391.1 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005092/0.3285, allocations: 166.3 kB / 391.3 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.3305, allocations: 2.878 MB / 394.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007454/0.3313, allocations: 42.03 kB / 394.2 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.156e-05/0.3314, allocations: 36.36 kB / 394.2 MB, free: 15.4 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.0006459/0.332, allocations: 268 kB / 394.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.3322, allocations: 91.34 kB / 394.6 MB, free: 15.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/0.3333, allocations: 0.5224 MB / 395.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3333, allocations: 4.312 kB / 395.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3333, allocations: 1.156 kB / 395.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.3334, allocations: 8.172 kB / 395.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.3357, allocations: 1.485 MB / 396.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3357, allocations: 2.75 kB / 396.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/0.336, allocations: 77.92 kB / 396.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002086/0.3363, allocations: 70.73 kB / 396.8 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/0.3363, allocations: 25.41 kB / 396.8 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.3385, allocations: 2.857 MB / 399.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3385, allocations: 2.594 kB / 399.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.3399, allocations: 0.8208 MB / 400.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003626/0.3403, allocations: 201.6 kB / 400.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.849e-05/0.3404, allocations: 12.38 kB / 400.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004506/0.3409, allocations: 32.59 kB / 400.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.678e-05/0.341, allocations: 38.67 kB / 400.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.149e-05/0.341, allocations: 15.5 kB / 400.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001057/0.3421, allocations: 0.577 MB / 401.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.81e-07/0.3421, allocations: 0 / 401.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001299/0.3434, allocations: 207.9 kB / 401.5 MB, free: 9.82 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.0003103/0.3437, allocations: 128.1 kB / 401.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.3452, allocations: 0.7166 MB / 402.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.3453, allocations: 4.25 kB / 402.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006846/0.346, allocations: 452.1 kB / 402.8 MB, free: 8.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.3473, allocations: 221 kB / 403 MB, free: 8.875 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.3505, allocations: 2.271 MB / 405.3 MB, free: 7.238 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006258/0.3511, allocations: 1.007 MB / 406.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004376/0.3516, allocations: 112.5 kB / 406.4 MB, free: 6.344 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.3517, allocations: 55.94 kB / 406.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3517, allocations: 3.281 kB / 406.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of Templates: time 0.02026/0.372, allocations: 10.13 MB / 416.6 MB, free: 13.38 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 -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/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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches