Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 106.5 kB / 16.92 MB, free: 5.785 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.001925/0.001925, allocations: 191.3 kB / 17.85 MB, free: 5.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 43.44 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08642/0.08745, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01272/0.1002, allocations: 14.17 MB / 364.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1809/0.2811, allocations: 20.31 MB / 384.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002003/0.2831, allocations: 63.12 kB / 384.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00291/0.2861, allocations: 1.118 MB / 385.8 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007715/0.2938, allocations: 2.29 MB / 388.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005914/0.2998, allocations: 1.439 MB / 389.5 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00954/0.3093, allocations: 6.405 MB / 396 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006556/0.31, allocations: 424.2 kB / 396.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.3116, allocations: 1.048 MB / 397.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001117/0.3128, allocations: 1.081 MB / 398.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001949/0.313, allocations: 77 kB / 398.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004361/0.3173, allocations: 1.482 MB / 400.1 MB, free: 1.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002983/0.3177, allocations: 321.4 kB / 400.4 MB, free: 1.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.3191, allocations: 1.328 MB / 401.7 MB, free: 364 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00553/0.3246, allocations: 3.651 MB / 405.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3247, allocations: 0 / 405.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.372e-06/0.3247, allocations: 4 kB / 405.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001035/0.3248, allocations: 0 / 405.4 MB, free: 13.52 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.005341/0.3302, allocations: 3.569 MB / 408.9 MB, free: 9.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3302, allocations: 8.031 kB / 408.9 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.3303, allocations: 102.5 kB / 409 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003876/0.3307, allocations: 372.4 kB / 409.4 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003305/0.334, allocations: 2.532 MB / 411.9 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.3341, allocations: 44.98 kB / 412 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.3342, allocations: 51.91 kB / 412 MB, free: 6.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.3356, allocations: 0.7615 MB / 412.8 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.3356, allocations: 3.984 kB / 412.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.138e-05/0.3357, allocations: 20 kB / 412.8 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.3357, allocations: 19.98 kB / 412.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.3375, allocations: 0.8553 MB / 413.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004637/0.3421, allocations: 2.962 MB / 416.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.3438, allocations: 0.7948 MB / 417.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.3453, allocations: 0.9571 MB / 418.4 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.028/0.3733, allocations: 30.07 MB / 448.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.3745, allocations: 0.5919 MB / 449.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.075e-06/0.3745, allocations: 0 / 449.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01207/0.3866, allocations: 5.221 MB / 454.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.3867, allocations: 76.33 kB / 454.4 MB, free: 7.879 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/0.3908, allocations: 2.7 MB / 457.1 MB, free: 5.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.3909, allocations: 45.64 kB / 457.1 MB, free: 5.113 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.392, allocations: 1.299 MB / 458.4 MB, free: 3.809 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003199/0.3923, allocations: 343.1 kB / 458.7 MB, free: 3.469 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003945/0.3927, allocations: 234.2 kB / 459 MB, free: 3.234 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3929, allocations: 345.9 kB / 459.3 MB, free: 2.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.3942, allocations: 470 kB / 459.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.3956, allocations: 0.6509 MB / 460.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002598/0.3982, allocations: 1.13 MB / 461.5 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.3982, allocations: 0 / 461.5 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003987/0.4022, allocations: 1.976 MB / 463.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4022, allocations: 8 kB / 463.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/0.4024, allocations: 124 kB / 463.6 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007161/0.4031, allocations: 268.4 kB / 463.9 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008819/0.404, allocations: 195.7 kB / 464.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009564/0.4136, allocations: 14.25 MB / 478.3 MB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.4152, allocations: 91.95 kB / 478.4 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002067/0.4154, allocations: 56 kB / 478.5 MB, free: 14.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009213/0.4163, allocations: 421.7 kB / 478.9 MB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006426/0.417, allocations: 379.4 kB / 479.3 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005291/0.4223, allocations: 2.203 MB / 481.5 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.4223, allocations: 8 kB / 481.5 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.4223, allocations: 4 kB / 481.5 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.4223, allocations: 7.922 kB / 481.5 MB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/0.4249, allocations: 1.543 MB / 483 MB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001612/0.425, allocations: 120 kB / 483.2 MB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007127/0.4257, allocations: 135.8 kB / 483.3 MB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006445/0.4264, allocations: 272.3 kB / 483.5 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.4265, allocations: 39.98 kB / 483.6 MB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009905/0.4364, allocations: 14.25 MB / 497.8 MB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4365, allocations: 3.938 kB / 497.8 MB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005743/0.4422, allocations: 2.539 MB / 0.4887 GB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.4433, allocations: 0.4887 MB / 0.4891 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005364/0.4439, allocations: 16 kB / 0.4891 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.4451, allocations: 83.89 kB / 0.4892 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000376/0.4455, allocations: 140.8 kB / 0.4894 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.4456, allocations: 51.98 kB / 0.4894 GB, free: 5.699 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002885/0.4485, allocations: 1.77 MB / 0.4911 GB, free: 3.922 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4485, allocations: 0 / 0.4911 GB, free: 3.922 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001753/0.4503, allocations: 0.6483 MB / 0.4918 GB, free: 3.273 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,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.006727/0.457, allocations: 3.83 MB / 0.4955 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004363/0.4614, allocations: 2.538 MB / 0.498 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4614, allocations: 0 / 0.498 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.4639, allocations: 1.96 MB / 0.4999 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003044/0.467, allocations: 0.6256 MB / 0.5005 GB, free: 9.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03432/0.5013, allocations: 22.43 MB / 0.5224 GB, free: 1.551 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1559/0.6572, allocations: 1.655 MB / 0.524 GB, free: 152.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001978/0.6593, allocations: 390.8 kB / 0.5244 GB, free: 152.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001491/0.6608, allocations: 1.198 MB / 0.5256 GB, free: 152.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6608, allocations: 0 / 0.5256 GB, free: 152.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1238/0.7846, allocations: 65.92 MB / 0.59 GB, free: 104.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.81, allocations: 4 kB / 0.59 GB, free: 104.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches