Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 112.5 kB / 18.36 MB, free: 4.84 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.001044/0.001044, allocations: 184.5 kB / 19.29 MB, free: 3.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001216, allocations: 47.94 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.08926, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.1949/0.2842, allocations: 12.09 MB / 387.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006101/0.2903, allocations: 3.309 MB / 391.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001865/0.2922, allocations: 35.56 kB / 391.2 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.2941, allocations: 0.67 MB / 391.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00206/0.2961, allocations: 0.7255 MB / 392.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008327/0.297, allocations: 400.1 kB / 393 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002484/0.2995, allocations: 2.406 MB / 395.4 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001239/0.3007, allocations: 1.009 MB / 396.4 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.3021, allocations: 0.8999 MB / 397.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009362/0.3031, allocations: 0.9765 MB / 398.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002665/0.3034, allocations: 233 kB / 398.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005001/0.3039, allocations: 266.1 kB / 398.8 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003244/0.3042, allocations: 456.1 kB / 399.2 MB, free: 168 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001089/0.3053, allocations: 1.08 MB / 400.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003298/0.3086, allocations: 2.832 MB / 403.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3086, allocations: 4 kB / 403.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3086, allocations: 1.094 kB / 403.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.99e-05/0.3087, allocations: 0 / 403.1 MB, free: 14.39 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004349/0.3131, allocations: 2.15 MB / 405.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3131, allocations: 9.625 kB / 405.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009686/0.3141, allocations: 283 kB / 405.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.3161, allocations: 1.125 MB / 406.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.998e-05/0.3162, allocations: 121.5 kB / 406.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.3164, allocations: 161.4 kB / 407 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002584/0.319, allocations: 1.503 MB / 408.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.24e-05/0.3191, allocations: 15.2 kB / 408.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.3192, allocations: 62.16 kB / 408.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.612e-05/0.3193, allocations: 38.38 kB / 408.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002061/0.3213, allocations: 1.053 MB / 409.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008853/0.3302, allocations: 6.226 MB / 415.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.3318, allocations: 0.6165 MB / 416.5 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009047/0.3327, allocations: 467 kB / 416.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.3327, allocations: 11.52 kB / 417 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.3328, allocations: 44.14 kB / 417 MB, free: 4.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 3.026e-06/0.3328, allocations: 1.125 kB / 417 MB, free: 4.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.005416/0.3382, allocations: 2.361 MB / 419.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.3383, allocations: 114.3 kB / 419.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/0.3404, allocations: 1.309 MB / 420.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.815e-05/0.3404, allocations: 40.66 kB / 420.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006222/0.3411, allocations: 0.8446 MB / 421.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.3413, allocations: 264.2 kB / 421.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002746/0.3416, allocations: 206.7 kB / 422.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3417, allocations: 349.9 kB / 422.5 MB, free: 396 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005914/0.3423, allocations: 286.5 kB / 422.7 MB, free: 108 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009085/0.3432, allocations: 0.7382 MB / 423.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001572/0.3448, allocations: 1.08 MB / 424.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.3448, allocations: 4 kB / 424.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002616/0.3475, allocations: 1.268 MB / 425.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.373e-05/0.3475, allocations: 12 kB / 425.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/0.3475, allocations: 16 kB / 425.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005543/0.3481, allocations: 134.7 kB / 426 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008301/0.3489, allocations: 255.6 kB / 426.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004038/0.353, allocations: 4.638 MB / 430.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.3544, allocations: 55.91 kB / 430.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.354e-05/0.3545, allocations: 52 kB / 431 MB, free: 6.988 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007143/0.3553, allocations: 357.3 kB / 431.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002527/0.3555, allocations: 146.4 kB / 431.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.3573, allocations: 0.8296 MB / 432.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.3574, allocations: 11.94 kB / 432.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.3574, allocations: 4 kB / 432.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3574, allocations: 7.922 kB / 432.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004191/0.3616, allocations: 2.33 MB / 434.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.3616, allocations: 4 kB / 434.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005809/0.3622, allocations: 123.9 kB / 434.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004748/0.3627, allocations: 134.7 kB / 434.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-05/0.3628, allocations: 23.98 kB / 434.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004302/0.3671, allocations: 4.787 MB / 439.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.3671, allocations: 7.984 kB / 439.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.3698, allocations: 1.3 MB / 441 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006591/0.3705, allocations: 287.3 kB / 441.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.3706, allocations: 16 kB / 441.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006276/0.3713, allocations: 43.97 kB / 441.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.3714, allocations: 60.36 kB / 441.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.283e-05/0.3714, allocations: 27.98 kB / 441.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001358/0.3728, allocations: 0.8781 MB / 442.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3728, allocations: 0 / 442.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001352/0.3742, allocations: 336 kB / 442.7 MB, free: 10.63 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002626/0.3744, allocations: 127.1 kB / 442.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001999/0.3765, allocations: 1.125 MB / 443.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3765, allocations: 0 / 443.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.3775, allocations: 0.7062 MB / 444.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/0.3793, allocations: 361.4 kB / 445 MB, free: 8.246 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005277/0.3846, allocations: 2.947 MB / 447.9 MB, free: 5.215 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008342/0.3854, allocations: 1.21 MB / 449.1 MB, free: 3.973 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003173/0.3857, allocations: 103.4 kB / 449.2 MB, free: 3.871 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3858, allocations: 0 / 449.2 MB, free: 3.871 MB / 366.1 MB Notification: Performance of Templates: time 0.04528/0.431, allocations: 40.86 MB / 490.1 MB, free: 10.93 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches