Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.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.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 103.9 kB / 18.39 MB, free: 4.656 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.001693/0.001693, allocations: 190.4 kB / 19.33 MB, free: 3.73 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.388/1.388, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001217/0.001217, allocations: 51.94 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08409/0.08531, allocations: 46.62 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003367/0.08873, allocations: 1.818 MB / 377.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.09114, allocations: 0.9829 MB / 378.6 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.09127, allocations: 3.938 kB / 378.6 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.09145, allocations: 23.8 kB / 378.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.09165, allocations: 43.64 kB / 378.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/0.09202, allocations: 95.81 kB / 378.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003932/0.09242, allocations: 315.3 kB / 379.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.09257, allocations: 49.66 kB / 379.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007865/0.09336, allocations: 0.7447 MB / 379.9 MB, free: 496 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005437/0.09392, allocations: 147.4 kB / 380 MB, free: 348 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.874e-05/0.09403, allocations: 20 kB / 380 MB, free: 328 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.681e-05/0.09411, allocations: 24 kB / 380.1 MB, free: 304 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.09425, allocations: 139.5 kB / 380.2 MB, free: 164 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.177/0.2712, allocations: 236.5 kB / 380.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008495/0.2721, allocations: 0.7508 MB / 381.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2722, allocations: 1.312 kB / 381.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2722, allocations: 0 / 381.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.831e-05/0.2722, allocations: 0.7969 kB / 381.2 MB, free: 10.44 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001549/0.2738, allocations: 1.163 MB / 382.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.333e-05/0.2738, allocations: 12.28 kB / 382.4 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.274, allocations: 78.19 kB / 382.4 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.2745, allocations: 393.1 kB / 382.8 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.406e-05/0.2746, allocations: 17.44 kB / 382.8 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.2748, allocations: 19.53 kB / 382.9 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006661/0.2754, allocations: 254.5 kB / 383.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.2755, allocations: 0 / 383.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.245e-05/0.2755, allocations: 10.94 kB / 383.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.2755, allocations: 2.688 kB / 383.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.2759, allocations: 137.4 kB / 383.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.2775, allocations: 0.7299 MB / 384 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004931/0.278, allocations: 201 kB / 384.2 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.2783, allocations: 181.7 kB / 384.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.2784, allocations: 1.438 kB / 384.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005419/0.2789, allocations: 393 kB / 384.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.924e-06/0.2789, allocations: 0 / 384.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001555/0.2805, allocations: 0.928 MB / 385.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.2806, allocations: 281.4 kB / 385.9 MB, free: 7.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.2818, allocations: 0.9482 MB / 386.9 MB, free: 7.688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.282, allocations: 37.86 kB / 386.9 MB, free: 7.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.2821, allocations: 128.2 kB / 387.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.738e-05/0.2822, allocations: 60.58 kB / 387.1 MB, free: 7.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003262/0.2825, allocations: 166 kB / 387.3 MB, free: 7.469 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.292e-05/0.2826, allocations: 339.2 kB / 387.6 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.2829, allocations: 124.7 kB / 387.7 MB, free: 7.109 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.2831, allocations: 162.2 kB / 387.9 MB, free: 7.035 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005238/0.2837, allocations: 0.6976 MB / 388.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2837, allocations: 0 / 388.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009127/0.2846, allocations: 0.7607 MB / 389.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.78e-05/0.2847, allocations: 246.3 kB / 389.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.2847, allocations: 2.094 kB / 389.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.2847, allocations: 5 kB / 389.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.568e-05/0.2848, allocations: 10.25 kB / 389.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.2848, allocations: 2.141 kB / 389.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004237/0.2852, allocations: 28.91 kB / 389.6 MB, free: 5.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.2853, allocations: 118.7 kB / 389.7 MB, free: 5.695 MB / 318.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: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000667/0.286, allocations: 0.6119 MB / 390.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.2861, allocations: 79.47 kB / 390.4 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001962/0.2863, allocations: 131 kB / 390.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2863, allocations: 1.125 kB / 390.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2864, allocations: 4.891 kB / 390.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.2864, allocations: 0.5156 kB / 390.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.2881, allocations: 1.434 MB / 392 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2882, allocations: 0.6094 kB / 392 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.601e-05/0.2882, allocations: 4.672 kB / 392 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2882, allocations: 1.875 kB / 392 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.2883, allocations: 32.91 kB / 392 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.018e-05/0.2883, allocations: 1.719 kB / 392 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.303e-06/0.2883, allocations: 0 / 392 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.2899, allocations: 0.9654 MB / 393 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005598/0.2904, allocations: 413.4 kB / 393.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.2906, allocations: 21.5 kB / 393.4 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.2908, allocations: 20.83 kB / 393.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.291, allocations: 58.69 kB / 393.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/0.2911, allocations: 109.8 kB / 393.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009094/0.292, allocations: 0.6874 MB / 394.3 MB, free: 3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.292, allocations: 3.938 kB / 394.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004518/0.2925, allocations: 97.06 kB / 394.4 MB, free: 2.988 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002782/0.2928, allocations: 155.5 kB / 394.6 MB, free: 2.875 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009888/0.2938, allocations: 0.8829 MB / 395.4 MB, free: 2.188 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2938, allocations: 4.062 kB / 395.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004811/0.2943, allocations: 0.752 MB / 396.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.2953, allocations: 278.3 kB / 396.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.2978, allocations: 1.339 MB / 397.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005799/0.2984, allocations: 0.9405 MB / 398.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.2986, allocations: 61.95 kB / 398.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2986, allocations: 1.375 kB / 398.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of Templates: time 0.01091/0.3095, allocations: 5.406 MB / 404.2 MB, free: 14.45 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/WiredX/WiredX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches