Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.869/1.869, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.239e-05, allocations: 0 / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09169/0.09176, allocations: 44.52 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4427/0.5346, allocations: 97.85 MB / 397.8 MB, free: 12.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.5349, allocations: 72.39 kB / 397.9 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4486/0.9834, allocations: 123.9 MB / 0.5095 GB, free: 9.898 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.9835, allocations: 0 / 0.5095 GB, free: 9.898 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.464e-05/0.9836, allocations: 44 kB / 0.5096 GB, free: 9.855 MB / 410.7 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.007848/0.9915, allocations: 2.651 MB / 0.5122 GB, free: 7.152 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/0.9916, allocations: 8.031 kB / 0.5122 GB, free: 7.145 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003708/0.9919, allocations: 102.5 kB / 0.5123 GB, free: 7.035 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009245/0.9929, allocations: 379.4 kB / 0.5126 GB, free: 6.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006913/0.9998, allocations: 2.248 MB / 0.5148 GB, free: 4.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.439e-05/0.9999, allocations: 37 kB / 0.5149 GB, free: 4.305 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003409/1, allocations: 63.77 kB / 0.5149 GB, free: 4.242 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/1.003, allocations: 0.791 MB / 0.5157 GB, free: 3.414 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/1.003, allocations: 3.953 kB / 0.5157 GB, free: 3.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/1.003, allocations: 20 kB / 0.5157 GB, free: 3.391 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.614e-05/1.003, allocations: 19.98 kB / 0.5157 GB, free: 3.371 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/1.005, allocations: 0.7072 MB / 0.5164 GB, free: 2.668 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2901/1.295, allocations: 3.04 MB / 0.5194 GB, free: 80.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002043/1.297, allocations: 0.647 MB / 0.52 GB, free: 80.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002227/1.299, allocations: 0.8817 MB / 0.5209 GB, free: 80.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0529/1.352, allocations: 35.98 MB / 0.556 GB, free: 54.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001282/1.354, allocations: 0.5226 MB / 0.5565 GB, free: 54.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 5.27e-06/1.354, allocations: 0 / 0.5565 GB, free: 54.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.01121/1.365, allocations: 3.473 MB / 0.5599 GB, free: 52.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/1.365, allocations: 275.2 kB / 0.5602 GB, free: 52.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005344/1.37, allocations: 2.223 MB / 0.5624 GB, free: 52.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003718/1.371, allocations: 49.36 kB / 0.5624 GB, free: 52.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001796/1.373, allocations: 1.058 MB / 0.5635 GB, free: 52.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005324/1.373, allocations: 328.3 kB / 0.5638 GB, free: 51.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/1.373, allocations: 25.12 kB / 0.5638 GB, free: 51.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/1.374, allocations: 346 kB / 0.5641 GB, free: 51.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009895/1.375, allocations: 330.6 kB / 0.5644 GB, free: 51.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/1.376, allocations: 0.544 MB / 0.565 GB, free: 51.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/1.377, allocations: 392.5 kB / 0.5653 GB, free: 51.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/1.377, allocations: 3.656 kB / 0.5653 GB, free: 51.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003766/1.381, allocations: 1.382 MB / 0.5667 GB, free: 51.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/1.381, allocations: 8.719 kB / 0.5667 GB, free: 51.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000286/1.381, allocations: 124.2 kB / 0.5668 GB, free: 51.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/1.382, allocations: 262.4 kB / 0.5671 GB, free: 50.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/1.384, allocations: 233.4 kB / 0.5673 GB, free: 50.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/1.394, allocations: 13.24 MB / 0.5802 GB, free: 38.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/1.397, allocations: 127.8 kB / 0.5803 GB, free: 38.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003439/1.397, allocations: 56.5 kB / 0.5804 GB, free: 38.43 MB / 410.7 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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003771/1.398, allocations: 166.8 kB / 0.5806 GB, free: 38.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008048/1.398, allocations: 373.3 kB / 0.5809 GB, free: 38.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007146/1.406, allocations: 1.971 MB / 0.5828 GB, free: 37.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/1.406, allocations: 8.312 kB / 0.5828 GB, free: 37.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/1.406, allocations: 3.719 kB / 0.5829 GB, free: 37.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.029e-05/1.406, allocations: 3.891 kB / 0.5829 GB, free: 37.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/1.41, allocations: 1.549 MB / 0.5844 GB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002956/1.41, allocations: 117.4 kB / 0.5845 GB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/1.411, allocations: 168.4 kB / 0.5846 GB, free: 37.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/1.413, allocations: 260.3 kB / 0.5849 GB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002883/1.413, allocations: 48.42 kB / 0.5849 GB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/1.424, allocations: 13.23 MB / 0.5979 GB, free: 40.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.424, allocations: 7.562 kB / 0.5979 GB, free: 40.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005591/1.43, allocations: 2.103 MB / 0.5999 GB, free: 40.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/1.431, allocations: 0.4986 MB / 0.6004 GB, free: 40.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008655/1.432, allocations: 22.31 kB / 0.6004 GB, free: 40.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002495/1.435, allocations: 120.5 kB / 0.6005 GB, free: 40.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006972/1.435, allocations: 144.1 kB / 0.6007 GB, free: 40.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/1.436, allocations: 47.7 kB / 0.6007 GB, free: 40.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004034/1.44, allocations: 1.719 MB / 0.6024 GB, free: 39.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.11e-07/1.44, allocations: 0 / 0.6024 GB, free: 39.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003026/1.443, allocations: 0.7103 MB / 0.6031 GB, free: 39.84 MB / 426.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008139/1.451, allocations: 3.472 MB / 0.6065 GB, free: 38.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004588/1.456, allocations: 2.213 MB / 0.6086 GB, free: 37.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/1.456, allocations: 8.547 kB / 0.6087 GB, free: 37.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003135/1.459, allocations: 1.792 MB / 0.6104 GB, free: 36.25 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/1.462, allocations: 474.2 kB / 0.6109 GB, free: 36.22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/1.474, allocations: 4.13 MB / 0.6149 GB, free: 35.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002018/1.476, allocations: 1.722 MB / 0.6166 GB, free: 34.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002146/1.478, allocations: 1.154 MB / 0.6177 GB, free: 34.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.543e-06/1.478, allocations: 0 / 0.6177 GB, free: 34.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.747/6.226, allocations: 154.5 MB / 0.7686 GB, free: 47.57 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat does not exist to compare? outputFormat=mat