Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2205/0.2205, allocations: 46.11 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 71.88 kB / 480.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3368, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003544/0.3404, allocations: 1.922 MB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.3417, allocations: 0.5585 MB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001839/0.3419, allocations: 6.938 kB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.3422, allocations: 18.89 kB / 0.5329 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001558/0.3423, allocations: 39.94 kB / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.3426, allocations: 47.66 kB / 0.533 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.3429, allocations: 153.5 kB / 0.5332 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.3431, allocations: 61.89 kB / 0.5332 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.3434, allocations: 62.94 kB / 0.5333 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.3435, allocations: 63.39 kB / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.3436, allocations: 11.84 kB / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.721e-05/0.3437, allocations: 17.38 kB / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.292e-05/0.3437, allocations: 27.62 kB / 0.5334 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.59e-05/0.3438, allocations: 77.92 kB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002743/0.3441, allocations: 159.6 kB / 0.5336 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3441, allocations: 0 / 0.5336 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3441, allocations: 0 / 0.5336 GB, free: 10.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.3441, allocations: 1.375 kB / 0.5336 GB, free: 10.98 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006963/0.3448, allocations: 433.7 kB / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.3449, allocations: 9.625 kB / 0.5341 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.724e-05/0.3449, allocations: 50.8 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.3451, allocations: 26.58 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.3455, allocations: 209.8 kB / 0.5343 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.3455, allocations: 9.875 kB / 0.5343 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.759e-05/0.3456, allocations: 20.56 kB / 0.5344 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/0.3459, allocations: 130.9 kB / 0.5345 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.3459, allocations: 1.375 kB / 0.5345 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.3459, allocations: 5.375 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.346, allocations: 2.75 kB / 0.5345 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.3462, allocations: 83.95 kB / 0.5346 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007616/0.3469, allocations: 461.5 kB / 0.535 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/0.3472, allocations: 116.1 kB / 0.5351 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.3473, allocations: 66.45 kB / 0.5352 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.3474, allocations: 5.156 kB / 0.5352 GB, free: 9.586 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.3474, allocations: 35.69 kB / 0.5352 GB, free: 9.543 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.804e-06/0.3474, allocations: 0 / 0.5352 GB, free: 9.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00165/0.3491, allocations: 0.8179 MB / 0.536 GB, free: 8.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.3491, allocations: 53.81 kB / 0.5361 GB, free: 8.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.3493, allocations: 146.3 kB / 0.5362 GB, free: 8.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.3493, allocations: 30.77 kB / 0.5362 GB, free: 8.645 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.415e-05/0.3494, allocations: 109.6 kB / 0.5363 GB, free: 8.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.535e-05/0.3495, allocations: 66.77 kB / 0.5364 GB, free: 8.477 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.395e-05/0.3495, allocations: 33.77 kB / 0.5364 GB, free: 8.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3497, allocations: 333.9 kB / 0.5368 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.3498, allocations: 39.05 kB / 0.5368 GB, free: 8.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.3499, allocations: 80.41 kB / 0.5369 GB, free: 8.043 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.3502, allocations: 145.3 kB / 0.537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3502, allocations: 0 / 0.537 GB, free: 7.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004068/0.3506, allocations: 206.3 kB / 0.5372 GB, free: 7.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3506, allocations: 11.66 kB / 0.5372 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.3506, allocations: 1.469 kB / 0.5372 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001754/0.3508, allocations: 41.25 kB / 0.5373 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001807/0.351, allocations: 39 kB / 0.5373 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.3525, allocations: 1.738 MB / 0.539 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.572e-05/0.3526, allocations: 6.781 kB / 0.539 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.3527, allocations: 9.031 kB / 0.539 GB, free: 6.062 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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.0001267/0.3528, allocations: 136.8 kB / 0.5391 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.235e-05/0.3528, allocations: 10.38 kB / 0.5392 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.3529, allocations: 19.78 kB / 0.5392 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3529, allocations: 6.781 kB / 0.5392 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.3529, allocations: 5.219 kB / 0.5392 GB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3529, allocations: 0 / 0.5392 GB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008277/0.3537, allocations: 0.5489 MB / 0.5397 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3538, allocations: 1.375 kB / 0.5397 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.3539, allocations: 35.06 kB / 0.5398 GB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001142/0.3541, allocations: 32.12 kB / 0.5398 GB, free: 5.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.3541, allocations: 5.188 kB / 0.5398 GB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001127/0.3552, allocations: 1.473 MB / 0.5412 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3552, allocations: 1.062 kB / 0.5412 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005124/0.3558, allocations: 352.4 kB / 0.5416 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.245e-05/0.3558, allocations: 88.61 kB / 0.5417 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.3559, allocations: 2.656 kB / 0.5417 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.356, allocations: 9.328 kB / 0.5417 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.356, allocations: 27.23 kB / 0.5417 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.3561, allocations: 4.281 kB / 0.5417 GB, free: 3.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.053e-05/0.3561, allocations: 110.8 kB / 0.5418 GB, free: 3.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3561, allocations: 0 / 0.5418 GB, free: 3.414 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003706/0.3565, allocations: 43.16 kB / 0.5418 GB, free: 3.406 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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.0008135/0.3573, allocations: 0.874 MB / 0.5427 GB, free: 2.621 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005561/0.3579, allocations: 264.3 kB / 0.5429 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3579, allocations: 0 / 0.5429 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002621/0.3582, allocations: 192.2 kB / 0.5431 GB, free: 2.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003621/0.3586, allocations: 20.03 kB / 0.5431 GB, free: 2.277 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002733/0.3613, allocations: 2.072 MB / 0.5452 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.3617, allocations: 0.716 MB / 0.5459 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.666e-05/0.3617, allocations: 16.67 kB / 0.5459 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.512e-05/0.3618, allocations: 42.73 kB / 0.5459 GB, free: 15.77 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3618, allocations: 0 / 0.5459 GB, free: 15.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02593/0.3878, allocations: 3.502 MB / 0.5493 GB, free: 13.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.905/10.29, allocations: 10.86 kB / 0.5494 GB, free: 13.73 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,J2.phi,J2.w Variables in the result:J1.J,J1.a,J1.flange_a.phi,J1.flange_a.tau,J1.flange_b.phi,J1.flange_b.tau,J1.phi,J1.stateSelect,J1.w,J2.J,J2.a,J2.flange_a.phi,J2.flange_a.tau,J2.flange_b.phi,J2.flange_b.tau,J2.phi,J2.stateSelect,J2.w,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.phi_a,gear.phi_b,gear.ratio,gear.support.phi,gear.support.tau,gear.useSupport,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport