Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 116.1 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001756/0.001756, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 61.39 kB / 306.6 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09835/0.09974, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004409/0.1042, allocations: 2.403 MB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.1055, allocations: 0.6505 MB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002478/0.1058, allocations: 4 kB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.106, allocations: 27.78 kB / 360.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002463/0.1063, allocations: 71.45 kB / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.1066, allocations: 55.88 kB / 360.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003918/0.107, allocations: 274.7 kB / 360.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.1072, allocations: 102.7 kB / 360.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.1075, allocations: 111.6 kB / 360.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.1076, allocations: 115.5 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.985e-05/0.1077, allocations: 24 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.236e-05/0.1078, allocations: 24 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.064e-05/0.1078, allocations: 47.78 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.108, allocations: 127.4 kB / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.1083, allocations: 263.3 kB / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1083, allocations: 0 / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1083, allocations: 0 / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1083, allocations: 0 / 361.4 MB, free: 10.02 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007548/0.1091, allocations: 0.5289 MB / 361.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1091, allocations: 11.97 kB / 361.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.956e-05/0.1092, allocations: 58.73 kB / 362 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.1093, allocations: 36.64 kB / 362 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.1096, allocations: 236.5 kB / 362.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.1097, allocations: 20.81 kB / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.218e-05/0.1097, allocations: 20.38 kB / 362.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003743/0.1101, allocations: 195.4 kB / 362.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.1101, allocations: 11.91 kB / 362.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.1101, allocations: 8 kB / 362.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.1102, allocations: 11.92 kB / 362.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002656/0.1104, allocations: 145.6 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008957/0.1113, allocations: 0.619 MB / 363.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.1116, allocations: 178.5 kB / 363.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.1118, allocations: 100.9 kB / 363.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.1118, allocations: 8 kB / 363.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.1118, allocations: 34.56 kB / 363.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.1119, allocations: 3.938 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001868/0.1137, allocations: 1.064 MB / 364.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.1138, allocations: 59.34 kB / 364.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.114, allocations: 186.2 kB / 364.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.114, allocations: 29.7 kB / 364.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.312e-05/0.1141, allocations: 144.6 kB / 365 MB, free: 6.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.456e-05/0.1142, allocations: 118.3 kB / 365.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.291e-05/0.1142, allocations: 53.7 kB / 365.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1143, allocations: 334.8 kB / 365.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.1145, allocations: 67.72 kB / 365.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.1147, allocations: 102.8 kB / 365.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.115, allocations: 201 kB / 365.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.115, allocations: 0 / 365.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004792/0.1155, allocations: 291.2 kB / 366.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.1155, allocations: 4 kB / 366.2 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1155, allocations: 0 / 366.2 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001732/0.1157, allocations: 52.84 kB / 366.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.1159, allocations: 59.95 kB / 366.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.1173, allocations: 1.736 MB / 368 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.1175, allocations: 12.03 kB / 368 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.1175, allocations: 8 kB / 368.1 MB, free: 2.848 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.1176, allocations: 145.2 kB / 368.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.1177, allocations: 31.64 kB / 368.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.191e-05/0.1178, allocations: 30.66 kB / 368.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.1178, allocations: 0 / 368.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.1178, allocations: 7.938 kB / 368.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.1178, allocations: 3.984 kB / 368.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.1189, allocations: 0.7896 MB / 369.1 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1189, allocations: 192 / 369.1 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000254/0.1191, allocations: 64.06 kB / 369.1 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.1193, allocations: 36.78 kB / 369.2 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.1193, allocations: 7.984 kB / 369.2 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.1203, allocations: 1.485 MB / 370.6 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1203, allocations: 4.031 kB / 370.7 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1483/0.2686, allocations: 472.9 kB / 371.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.863e-05/0.2687, allocations: 96.48 kB / 371.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.2688, allocations: 8.766 kB / 371.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.2689, allocations: 13.97 kB / 371.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.639e-05/0.269, allocations: 17.95 kB / 371.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.148e-05/0.2691, allocations: 14.23 kB / 371.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001177/0.2692, allocations: 136.2 kB / 371.4 MB, free: 19.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2692, allocations: 0 / 371.4 MB, free: 19.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004678/0.2697, allocations: 70.66 kB / 371.5 MB, free: 19.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008792/0.2705, allocations: 1.019 MB / 372.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006553/0.2712, allocations: 348.8 kB / 372.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2712, allocations: 0.875 kB / 372.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003192/0.2716, allocations: 247 kB / 373.1 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/0.2721, allocations: 43.14 kB / 373.1 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.2752, allocations: 2.845 MB / 376 MB, free: 17.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.2754, allocations: 0.754 MB / 376.7 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.2755, allocations: 23.2 kB / 376.7 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.2756, allocations: 76.25 kB / 376.8 MB, free: 16.28 MB / 302.1 MB Notification: Performance of SimCode: time 1.213e-06/0.2757, allocations: 4 kB / 376.8 MB, free: 16.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02068/0.2963, allocations: 5.058 MB / 381.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.2965, allocations: 215.2 kB / 382.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/2.365, allocations: 0 / 382.1 MB, free: 15.51 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(der(idealGear.phi_a)),der(der(idealGear.phi_b)),der(idealGear.phi_a),der(idealGear.phi_b),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),f,fixed.flange.phi,fixed.flange.tau,fixed.phi0,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.ratio,idealGear.support.phi,idealGear.support.tau,idealGear.useSupport,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport