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.0011/0.0011, allocations: 110.6 kB / 18.4 MB, free: 4.676 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.001133/0.001134, allocations: 190.1 kB / 19.34 MB, free: 3.754 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.285/1.285, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001238/0.001238, allocations: 51.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07388/0.07513, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.00285/0.07801, allocations: 1.804 MB / 377.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.08008, allocations: 0.9829 MB / 378.6 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.919e-05/0.0802, allocations: 4 kB / 378.6 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.08036, allocations: 27.72 kB / 378.6 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.456e-05/0.08046, allocations: 43.64 kB / 378.7 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.0808, allocations: 91.83 kB / 378.8 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000393/0.0812, allocations: 323.3 kB / 379.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.08136, allocations: 53.64 kB / 379.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007632/0.08213, allocations: 0.7369 MB / 379.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.08237, allocations: 147.4 kB / 380 MB, free: 364 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.868e-05/0.08246, allocations: 20 kB / 380 MB, free: 344 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.975e-05/0.08253, allocations: 24 kB / 380.1 MB, free: 320 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.08267, allocations: 147.4 kB / 380.2 MB, free: 172 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1464/0.2291, allocations: 232.2 kB / 380.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006967/0.2298, allocations: 0.7488 MB / 381.2 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2298, allocations: 0 / 381.2 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2298, allocations: 0 / 381.2 MB, free: 10.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.2298, allocations: 2.281 kB / 381.2 MB, free: 10.47 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.0009137/0.2308, allocations: 1.162 MB / 382.4 MB, free: 9.578 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.2308, allocations: 8.953 kB / 382.4 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.2309, allocations: 78.5 kB / 382.4 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.2312, allocations: 394.8 kB / 382.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.2313, allocations: 14.88 kB / 382.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.827e-05/0.2313, allocations: 15.69 kB / 382.9 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004633/0.2318, allocations: 259.2 kB / 383.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.403e-06/0.2318, allocations: 0 / 383.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.988e-05/0.2318, allocations: 11.02 kB / 383.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.2319, allocations: 1.969 kB / 383.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002932/0.2322, allocations: 136.1 kB / 383.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.2332, allocations: 0.7286 MB / 384 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.2336, allocations: 206.9 kB / 384.2 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002647/0.2338, allocations: 180.2 kB / 384.4 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.2339, allocations: 1.125 kB / 384.4 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004913/0.2344, allocations: 393.4 kB / 384.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.713e-06/0.2344, allocations: 0 / 384.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001263/0.2356, allocations: 0.9278 MB / 385.7 MB, free: 8.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.2357, allocations: 282.4 kB / 385.9 MB, free: 8.023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.2368, allocations: 0.95 MB / 386.9 MB, free: 7.719 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.2368, allocations: 37.95 kB / 386.9 MB, free: 7.688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.2369, allocations: 124.5 kB / 387.1 MB, free: 7.605 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.327e-05/0.237, allocations: 64.62 kB / 387.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/0.2372, allocations: 164.1 kB / 387.3 MB, free: 7.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.2372, allocations: 339.7 kB / 387.6 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/0.2375, allocations: 126.6 kB / 387.7 MB, free: 7.156 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.2377, allocations: 161.3 kB / 387.9 MB, free: 7.082 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004925/0.2382, allocations: 0.7001 MB / 388.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2382, allocations: 0 / 388.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008717/0.2391, allocations: 0.7565 MB / 389.3 MB, free: 6.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.792e-05/0.2392, allocations: 246.6 kB / 389.6 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2392, allocations: 1.781 kB / 389.6 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.2392, allocations: 8.594 kB / 389.6 MB, free: 5.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.284e-05/0.2393, allocations: 16.31 kB / 389.6 MB, free: 5.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.2393, allocations: 1.094 kB / 389.6 MB, free: 5.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.2395, allocations: 29.92 kB / 389.6 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.2397, allocations: 112.8 kB / 389.8 MB, free: 5.738 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.0004943/0.2402, allocations: 0.6066 MB / 390.4 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.992e-05/0.2402, allocations: 79.53 kB / 390.4 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001779/0.2404, allocations: 134.7 kB / 390.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2404, allocations: 0.6562 kB / 390.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2405, allocations: 0.875 kB / 390.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005005/0.241, allocations: 420.1 kB / 391 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.2411, allocations: 22.72 kB / 391 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.2413, allocations: 20.75 kB / 391 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.2414, allocations: 54.66 kB / 391.1 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001064/0.2425, allocations: 1.321 MB / 392.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001031/0.2435, allocations: 1.048 MB / 393.4 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000332/0.2439, allocations: 304.5 kB / 393.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008093/0.2447, allocations: 0.6888 MB / 394.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of Backend: time 4.61e-07/0.2447, allocations: 0 / 394.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008582/0.2456, allocations: 0.8319 MB / 395.3 MB, free: 1.961 MB / 318.1 MB Notification: Performance of SimCode: time 0.001996/0.2476, allocations: 2.159 MB / 397.4 MB, free: 308 kB / 318.1 MB Notification: Performance of Templates: time 0.0122/0.2598, allocations: 8.728 MB / 406.2 MB, free: 13.55 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