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.001775/0.001775, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002035/0.002035, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.5 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 65.8 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09998/0.1019, allocations: 50.54 MB / 358.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01005/0.112, allocations: 8.237 MB / 366.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005209/0.1172, allocations: 2.75 MB / 369.2 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008262/0.1181, allocations: 23.94 kB / 369.2 MB, free: 3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001469/0.1196, allocations: 0.5597 MB / 369.8 MB, free: 2.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001169/0.1208, allocations: 472.2 kB / 370.2 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005303/0.1213, allocations: 271.6 kB / 370.5 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001612/0.1229, allocations: 1.498 MB / 372 MB, free: 208 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1559/0.2788, allocations: 0.5789 MB / 372.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009796/0.2799, allocations: 0.5669 MB / 373.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006163/0.2805, allocations: 0.6062 MB / 373.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001809/0.2807, allocations: 146.3 kB / 373.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003779/0.2811, allocations: 185.1 kB / 374.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.2813, allocations: 285.5 kB / 374.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005696/0.2818, allocations: 0.676 MB / 375 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001804/0.2836, allocations: 1.737 MB / 376.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.2837, allocations: 0.6562 kB / 376.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2837, allocations: 3.219 kB / 376.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.2837, allocations: 0 / 376.8 MB, free: 9.949 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.002356/0.2861, allocations: 1.482 MB / 378.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.2861, allocations: 9.531 kB / 378.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007204/0.2868, allocations: 197.7 kB / 378.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.2879, allocations: 0.7548 MB / 379.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.361e-05/0.2879, allocations: 78.31 kB / 379.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.2881, allocations: 95.52 kB / 379.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.2896, allocations: 0.9408 MB / 380.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.136e-05/0.2896, allocations: 8.812 kB / 380.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.39e-05/0.2897, allocations: 43.91 kB / 380.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.829e-05/0.2898, allocations: 24.56 kB / 380.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.291, allocations: 0.6466 MB / 381 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004536/0.2955, allocations: 3.954 MB / 385 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006459/0.2962, allocations: 443.4 kB / 385.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005588/0.2968, allocations: 271.7 kB / 385.7 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.2968, allocations: 5.156 kB / 385.7 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.2968, allocations: 36.91 kB / 385.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.106e-06/0.2968, allocations: 1.062 kB / 385.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002827/0.2997, allocations: 1.542 MB / 387.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.2997, allocations: 86.36 kB / 387.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.3008, allocations: 0.8475 MB / 388.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.3008, allocations: 32.3 kB / 388.2 MB, free: 3.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.3011, allocations: 0.5752 MB / 388.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.742e-05/0.3012, allocations: 156.5 kB / 389 MB, free: 3.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.3014, allocations: 135.4 kB / 389.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.255e-05/0.3014, allocations: 332.1 kB / 389.4 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000337/0.3018, allocations: 171.5 kB / 389.6 MB, free: 2.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004238/0.3022, allocations: 472 kB / 390 MB, free: 2.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008007/0.303, allocations: 0.6735 MB / 390.7 MB, free: 1.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.303, allocations: 2.625 kB / 390.7 MB, free: 1.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001293/0.3043, allocations: 0.7871 MB / 391.5 MB, free: 1.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.3044, allocations: 8.719 kB / 391.5 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.3044, allocations: 10.84 kB / 391.5 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002535/0.3047, allocations: 88.33 kB / 391.6 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004835/0.3052, allocations: 155.1 kB / 391.8 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.3075, allocations: 3.152 MB / 394.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006564/0.3081, allocations: 41.98 kB / 395 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-05/0.3082, allocations: 35.78 kB / 395 MB, free: 14.55 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.0004482/0.3087, allocations: 259.2 kB / 395.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.3088, allocations: 90.44 kB / 395.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.3098, allocations: 0.4975 MB / 395.8 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.3098, allocations: 8 kB / 395.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.3099, allocations: 2.094 kB / 395.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3099, allocations: 3.891 kB / 395.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.3122, allocations: 1.488 MB / 397.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3122, allocations: 2.75 kB / 397.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003052/0.3125, allocations: 72.41 kB / 397.4 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002094/0.3127, allocations: 74.19 kB / 397.5 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.3128, allocations: 8.359 kB / 397.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002675/0.3154, allocations: 3.132 MB / 400.6 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3155, allocations: 4.969 kB / 400.6 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.3169, allocations: 0.7939 MB / 401.4 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.3173, allocations: 198.2 kB / 401.6 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.3174, allocations: 16.11 kB / 401.6 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.3178, allocations: 34.98 kB / 401.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.766e-05/0.318, allocations: 47 kB / 401.7 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.318, allocations: 9.625 kB / 401.7 MB, free: 9.297 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008383/0.3188, allocations: 0.5785 MB / 402.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3188, allocations: 0 / 402.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008993/0.3197, allocations: 204.9 kB / 402.5 MB, free: 8.949 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.0002088/0.32, allocations: 123.7 kB / 402.6 MB, free: 8.852 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.3213, allocations: 0.7237 MB / 403.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3213, allocations: 1.5 kB / 403.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006884/0.322, allocations: 448 kB / 403.8 MB, free: 8.098 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.3232, allocations: 229.3 kB / 404 MB, free: 7.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.326, allocations: 1.797 MB / 405.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006912/0.3267, allocations: 1.013 MB / 406.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.3269, allocations: 67.64 kB / 406.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3269, allocations: 0 / 406.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of Templates: time 0.02894/0.3559, allocations: 21.35 MB / 428.2 MB, free: 1.758 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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